News for hackers. Stuff that matters.
Re:AWS Lambda and .zip is a recipe for serverless success by djhworld on Sunday March 18, 2018 @01:50PM (#16613177)
AWS Lambda itself isn't vendor lock in.

If you write your Lambda function to put the interaction between the AWS Lambda service at the surface level of your application (i.e. the entry/exit point), and then write your business logic inbetween, you can create a function that is quite easily tranferrable between cloud providers.

The vendor lock in creeps in more around the surrounding services that the cloud provider offers. You can protect yourself from this though by writing good quality hooks that have pluggable backends, e.g. writing/reading to an object store should be abstracted

Re:AWS Lambda and .zip is a recipe for serverless success by electricEmu on Sunday March 18, 2018 @04:53PM (#16614259)
Why would I split, write, and deploy an vendor cloud function for every cloud provider when Docker moves between them?

My team ditched serverless functions. We're better off without them.

Re:AWS Lambda and .zip is a recipe for serverless success by zapita on Sunday March 18, 2018 @06:14PM (#16614779)
Wouldn't it be ideal if Docker (and other independent platform vendors) added function support? In my mind "cloud functions" are easily implemented on top of containers. Then we would get the best of both worlds.
Re:AWS Lambda and .zip is a recipe for serverless success by gnahckire on Sunday March 18, 2018 @11:02PM (#16615968)
Check out this project: https://github.com/openfaas/faas
Re:AWS Lambda and .zip is a recipe for serverless success by electricEmu on Sunday March 18, 2018 @06:39PM (#16614905)
It wouldn't, to me.

I've had to answer many questions about delays in serverless functions that didn't come up with Docker. Serverless doesn't have the introspection necessary to answer performance questions.

What if Docker supported functions? I'd ask what we gain trading a main loop for only bindings. Similar bindings are made either way.

I honestly wish cloud providers would make their core SDKs as easily composable as their serverless offerings.

Re:AWS Lambda and .zip is a recipe for serverless success by carimura on Sunday March 18, 2018 @09:45PM (#16615658)
Exactly. This is the goal of http://FnProject.io -- power of containers + simplicity of serverless. No managed service yet but there will be, and anyone can run the bits to create a service of their own.

I do agree with Paul about containers having a greater update surface area, but we think this is also solvable and doesn't need to be a responsibility of the developer either.

Re:AWS Lambda and .zip is a recipe for serverless success by WorldMaker on Monday March 19, 2018 @04:59PM (#16623101)
The Azure Functions (Azure's equivalent to AWS Lambda) Host is open source: https://github.com/Azure/azure-functions-host/

There's probably enough there to bootstrap a container version.

Re:AWS Lambda and .zip is a recipe for serverless success by aynsof on Sunday March 18, 2018 @09:27PM (#16615582)
Have you looked into Cloud Foundry? From my understanding, it can operate like a FaaS provider or like a Docker container scheduler.
Re:AWS Lambda and .zip is a recipe for serverless success by thinkloop on Sunday March 18, 2018 @05:44PM (#16614580)
Do you manually manage the infrastructure (keeping instances hot/cold, updates, scaling, etc.)? If so that's a lot to consider.
Re:AWS Lambda and .zip is a recipe for serverless success by electricEmu on Sunday March 18, 2018 @06:48PM (#16614953)
Containers are generally managed similar to serverless.

AWS drains connections and workloads on container deployments. I set the same rules to scale either.

Containers offer flexibility that serverless doesn't for implementing hot/cold, blue/green, n running with n+1, etc.

So, additional flexibility with the same considerstions.

Re:AWS Lambda and .zip is a recipe for serverless success by phamilton on Monday March 19, 2018 @01:01AM (#16616265)
Lambda support blue/green and all sorts of flexible stuff:

    aws lambda update-alias --function-name myfunction --name myalias --routing-config '{"AdditionalVersionWeights" : {"2" : 0.05} }'
Re:AWS Lambda and .zip is a recipe for serverless success by mateuszf on Sunday March 18, 2018 @05:48PM (#16614604)
Because then every single functionality will scale independently as needed. No need for orchestration.
Re:AWS Lambda and .zip is a recipe for serverless success by electricEmu on Sunday March 18, 2018 @06:41PM (#16614911)
AWS and Azure offer cloud hosted Docker support that scales independently as needed. Both can orchestrate Docker with similar interfaces to functions.

What's the difference? Scaling isn't one.

Re:AWS Lambda and .zip is a recipe for serverless success by nostalgeek on Sunday March 18, 2018 @08:29PM (#16615357)
> AWS Lambda itself isn't vendor lock in.

Can I call my Postgres deployment on Azure via AWS lambda?

Re:AWS Lambda and .zip is a recipe for serverless success by ralusek on Sunday March 18, 2018 @08:53PM (#16615452)
Yes you can, but even that wouldn't be lock-in. Lock-in imo had much more to do with whether you have to write your code specifically to the vendor, and in the case of all 3 FaaS, the answer is mostly "not really." It is trivial to transfer the same behavior from lambda to Google cloud functions.
Re:AWS Lambda and .zip is a recipe for serverless success by ShabbosGoy on Sunday March 18, 2018 @08:35PM (#16615383)
This is a pretty fair point about service discovery. Without proper service discovery, Lambda is pretty useless IMO.