Live data from Hacker News

Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

serverless.com

11–20 of 48 posts

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#11
post #8

This solution is sort of weird to me. To me, the allure of a static site or a static blog is to simplify the stack; To bring it back to the basics. Static HTML served by a good ole-fashion web server. Adding the cognitive burden of "serverless" and/or lambda just to schedule seems to complicate something that isn't very complicated. Its almost like an invented problem. That said, long live this static site generator…

I use jekyll NOT because it's simple (Actually it's 100 times more complex to use than a simple wordpress or medium) but because: 1. I can keep track changes with git 2. I can host them on Github pages for FREE 3. I own the content 4. More flexible In fact I've been really annoyed with all the boilerplate code and extensions I need to deal with in order to have a "usable" workflow set up, I almost thought about movin…

Jekyll is way more simple from a "stack" perspective. It has no database, has less moving parts.

Wordpress is simple from an end user perspective.

Services like medium and tumblr hide the complexity from its users. Its a trade off.

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#12
post #8

This solution is sort of weird to me. To me, the allure of a static site or a static blog is to simplify the stack; To bring it back to the basics. Static HTML served by a good ole-fashion web server. Adding the cognitive burden of "serverless" and/or lambda just to schedule seems to complicate something that isn't very complicated. Its almost like an invented problem. That said, long live this static site generator…

Thanks for the comment foxhop! We try to keep things as simple as possible where we can. This project came out of the need from our content team needing to publish content late at night and when people are out of office =) Check out the code https://github.com/serverless/post-scheduler/blob/master/han... this serverless service is just 2 functions that get deployed. It's a set it and forget it service =)

I think if I was doing operations for a company using a static site I would end up with something similar.

I suppose my original perspective was coming from a one-person operation.

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#13
post #12

Earlier quoted context omitted.

Thanks for the comment foxhop! We try to keep things as simple as possible where we can. This project came out of the need from our content team needing to publish content late at night and when people are out of office =) Check out the code https://github.com/serverless/post-scheduler/blob/master/han... this serverless service is just 2 functions that get deployed. It's a set it and forget it service =)

I think if I was doing operations for a company using a static site I would end up with something similar. I suppose my original perspective was coming from a one-person operation.

If you want the flexibility and performance of static sites, but don't want to deal with workflow setups, you should check Pragma - http://www.laktek.com/2016/11/29/introducing-pragma/

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#14

Earlier quoted context omitted.

Yeah, they said its "serverless" but it requires an AWS lambda function. I use Jekyll for my blog but I simply commit, push, and run a script that copies the files to S3. https://www.tberra.com/aws/amazon/meta/2016/11/12/the-birth-... its not scheduled but I could easily tell linux to run that command once at whatever time I wanted.

AWS lambda functions __are__ serverless. There's no notion of uptime, provisioning or managing servers when using lambda.

This is true, but what triggers the lambda function to run? Where does the lambda function run when its triggered?

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#16

Earlier quoted context omitted.

AWS lambda functions __are__ serverless. There's no notion of uptime, provisioning or managing servers when using lambda.

This is true, but what triggers the lambda function to run? Where does the lambda function run when its triggered?

Clearly you need to learn more about lambda https://aws.amazon.com/lambda/

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#17
post #15

Wow. Talk about building a rocket ship just to cross the street. Edit: My backyard is filled with old rocket ships, so I am an expert on this subject :-)

I built the rocket ship so you don't have to ™

https://www.youtube.com/watch?v=qz72V84uWWA

Re: Static Site Post Scheduler: Using AWS Lambda and Serverless to Schedule Blog Posts

#19

Earlier quoted context omitted.

AWS lambda functions __are__ serverless. There's no notion of uptime, provisioning or managing servers when using lambda.

This is true, but what triggers the lambda function to run? Where does the lambda function run when its triggered?

One lambda runs when github webhooks are fired: https://github.com/serverless/post-scheduler#github-webhook-...

The other lambda fires on a cron job https://github.com/serverless/post-scheduler#cron-job-archit...

Post reply on HN