News for hackers. Stuff that matters.
Re:Serverless Golang API with AWS Lambda by scrollaway on Saturday January 20, 2018 @09:17PM (#16196537)
I mostly agree, but sometimes it's simply convenient to use the regular Django wsgi routines to serve parts of a Django app. The alternative there if you want to serve stuff behind URLs is using the Api Gateway and that is atrocious to work with. Also, whenever there's a discussion about lambda, people talk about "lock in" and the api gateway is a much bigger lock-in than lambda.

Example: I have an API in Django which uses DRF, served on a classic web server instance behind load balancers etc. Parts of that API, which have the same authentication/business logic/etc, are much more suited to lambda, I'm sure it's not hard to imagine :)

Re:Serverless Golang API with AWS Lambda by smashedtoatoms on Saturday January 20, 2018 @11:39PM (#16196886)
That’s fair. Api Gateway is definitely the lock-in as well.
Re:Serverless Golang API with AWS Lambda by _pdp_ on Sunday January 21, 2018 @12:03AM (#16196940)
Everything is a lock-in. :) Lambda has a straightforward interface so wrapping your functions in something else should be easy enough.
Re:Serverless Golang API with AWS Lambda by k__ on Sunday January 21, 2018 @06:06AM (#16197616)
Also, Lambda is just the glue code. You have to use many other AWS stuff that really locks you in deep, even if you functionallity could "theoretically" be ported to different providers.
Re:Serverless Golang API with AWS Lambda by _pdp_ on Sunday January 21, 2018 @09:06AM (#16198074)
If there is a real need to port your infrastructure you can do it in small steps. Using single cloud provider is also not smart. If I need to do huge data processing I will never do it with AWS although this is where the rest of the infrastructure is as Google has better solutions. Just pick whatever is best.