Live data from Hacker News

Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

aws.amazon.com

61–70 of 140 posts

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#61

I hate the term serverless. It involves a server. AWS Lambda is a service bound to a port therefore a server. It runs user defined functions, true. But it is a server.

It isn't bound to a port. AWS λ functions are event-driven. They're bound to queues.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#63
post #11

I love lambda's, but api gateway was far from mature the last time I used it (6 months ago). Unless they have made serious updates to the deployment workflow, feature set, and documentation I would not recommend building your products on it.

They released proxy resources to API Gateway. Lets you specify a route like /foo/{path+} and all requests are forwarded as-is.

Great for simplifying universal web apps.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#64

Wherein "serverless" basically means more computers in more places just doing different tasks.

Yep. It's good old fashioned webhosting. Drop your files in the amazon equivalent of ~/public-html/ . If it serves your needs, it's not a bad thing, but it's hardly revolutionary.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#65
post #59

Earlier quoted context omitted.

A cluster of? servers. Again, server. server, server, server. Repeat with me: server.

It's just semantics, point is, you don't have to worry about spinning up servers, provisioning them, or maintaining them; just write code.

Write code to run on? a server.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#66
post #27

Earlier quoted context omitted.

I'm in the same boat. I have 4 microscervices set up with API Gateway + Lambda and now actively guide people away from API Gateway.

Do you have any feedback that I can pass along to the team? Post it here or email it to me (email in profile).

I'm in the same boat.

If I would have to name one thing, it's that the configuration of API Gateway via the UI is unbearable if you have a nontrivial amount of routes (> 3). I need to configure Authorization, Error code mappings etc. for every route, although they are exactly the same. If there would be per-gateway defaults I can set with per-route overrides, that would cut down the setup time by 95%, which is the main thing holding me back from using API Gateway for projects that would suit it.

Right now the only option I seem to have is using a tool like Terraform to automate it, which is a pain to adopt if you already have a running API Gateway.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#67
I am currently using AWS API Gateway + Lambda for the serverless backend of a social traveling startup. It is absolutely awesome: we are few people in IT and it is amazingly simple to manage the whole stuff. Moreover imho they are mature services at this time, they are flexible enough with enough configuration properties to fulfill a nearly full control of the development experience.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#68

I hate the term serverless. It involves a server. AWS Lambda is a service bound to a port therefore a server. It runs user defined functions, true. But it is a server.

It would help if people referred to this technological concept as Function as a Service. That is a lot less ambiguous and buzzwordish than 'serverless'.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#69

Earlier quoted context omitted.

You break the entire model of an oversubscribed multi-tenant container system if you want every lambda hot all the time. If that's what you need...you need a server.

"If that's what you need...you need a server." We want micro-services that are available as we need them, at any scale, and we never want to deal with a 'server' again. "You break the entire model of an oversubscribed multi-tenant container system" - we don't care that much about how it's implemented, or what underlying model is used, as long as it is secure, robust, and reliable.

What you're describing is managed hosting. In order to do it, you either have to oversubscribe like hell, and deal with latency, or pay for wide open swaths of server. Pick your poison.

Re: Going Serverless: Migrating an Express App to AWS API Gateway and AWS Lambda

#70
post #59

Earlier quoted context omitted.

It's just semantics, point is, you don't have to worry about spinning up servers, provisioning them, or maintaining them; just write code.

Write code to run on? a server.

Call it whatever you want, but I like to use the language of those who hold the purse-strings. If they call it "serverless", then I call it "serverless". If delivering a lecture about why it's not really serverless improves your product, then go ahead and deliver that lecture, but I doubt it will.
Post reply on HN