News for hackers. Stuff that matters.
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by lotyrin on Thursday December 14, 2017 @03:29PM (#15926664)
This claims that on close-to-breakeven applications that moving to serverless might reduce dev costs or accelerate dev work... Serverless proponents: how does that work in theory?

In practice, all the serverless guys I've seen have a pre-CI pre-VCS pre-UAT kind of workflow using the AWS console where there's no change control or ability to collaborate.

Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by smoll on Thursday December 14, 2017 @04:20PM (#15927174)
I've been using Zappa https://github.com/Miserlou/Zappa for a few side projects and even at work, and you can definitely set up a robust version-controlled, CI + UAT + CD pipeline if you have the discipline.

* Dev: develop inside Docker container identical to Lambda environment https://github.com/lambci/docker-lambda

* CI: test via Jenkins/GoCD/Travis/CircleCI, inside docker

* Staging: deploy to staging host on merge

* UAT: against staging env, break build if any user-facing tests fail

* Prod: deploy exact same package we deployed to Staging

Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by WaxProlix on Thursday December 14, 2017 @06:49PM (#15928504)
CI/CD is pretty easy. Another commenter mentioned Jenkins+Terraform. A year or so ago, I did a great project using just Jenkins+CloudFormation for Lambda deployments, too. Took a bit of initial investment but after that it was maybe the best development experience I've had, despite the tooling being lackluster and best practices still sort of emerging. We used TypeScript to build microservices in the backend with API Gateway talking to a proxy tier, Angular 2 in the frontend. All super enjoyable to use.
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by agranias on Thursday December 14, 2017 @03:37PM (#15926755)
Of course it depends on the use case, but for smaller functions it definitely reduces dev work. For AWS, Lambdas can be versioned and aliased. Blue green deployments are trivial since you can switch Lambda versions on the fly. Rolling back and invoking dev versions are similar.
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by illumin8 on Thursday December 14, 2017 @05:00PM (#15927549)
You can now even do canary deployments where you switch a small amount of traffic to a new version of your Lambda. The FaaS (function as a service) ecosystem is rapidly reaching parity with traditional software.

Disclaimer: I work for AWS

Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by shoo on Thursday December 14, 2017 @03:47PM (#15926856)
Some ideas here re automated testing, CI and deployment:

https://hackernoon.com/yubls-road-to-serverless-part-2-testi...

Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by ewindisch on Friday December 15, 2017 @01:11PM (#15933759)
My team uses the Serverless Framework (serverless.com), git-with-github, and automate deployments from CI/CD.

AWS also offers some of these pieces fully integrated via CodeDeploy (which we do not ourselves use).

Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by signalnine on Thursday December 14, 2017 @03:35PM (#15926739)
We've got a CI pipeline that deploys Lambda functions via Terraform and Jenkins. There are some slightly tricky bits but it's not really that hard to do.
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by lotyrin on Thursday December 14, 2017 @03:47PM (#15926862)
So like, CI uses Terraform populates all of your functions + other resources in a temporary environment and runs whole-system integration tests?
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by chrisweekly on Thursday December 14, 2017 @10:30PM (#15929491)
You lost me at "pre-VCS". Seriously.
Re:Show HN: Servers.lol – Should Your EC2 Be a Lambda? by lotyrin on Friday December 15, 2017 @11:07AM (#15932747)
Yeah... I tend to end up on "We're kind-of like a start-up inside of the Enterprise" teams which frequently fail to see the benefit of change control or release engineering, they're edit-on-production PHP cowboys or Java devs that are used to feeling like operations and integrating their code changes are someone else's problem, but who have no such support.

Teams that have (only fairly recently) discovered AWS lets them escape the snail's pace of getting something into production within Enterprise IT, their little walled garden that IT has siloed them into (for their own good). They just absolutely love Node + Lambda because servers are scary (they tend not to have CLI skills to even CD / LS around the VFS) and it lets them get things done -- which is all their superiors value.

Places where IT doesn't value time to market, and nobody values maintenance or costs (we regularly have products owned by failing to apply patches to products using OSS, we rack up AWS bills by leaving manually created test resources around for months or ramping up products like Lambda to the moon for a batch job then forgetting to turn it back down once it finishes).