Live data from Hacker News

Apache OpenWhisk – A serverless, open-source cloud platform

openwhisk.apache.org

51–60 of 146 posts

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#51
I'm new to serverless, but I've wondered what happens if:

- The function get stuck and run forever?

- It causes a request to loop?

And you have hundreds or thousands of these "functions" deployed?

Couldn't that cause sky-high costs if it goes undetected or even unwanted DDOS against other's infrastructure?

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#52

Earlier quoted context omitted.

It's less of CGI (some projects only support that) Think of it like FastCGI where most of the issues with CGI are fixed up (i.e. throughput isn't an issue) and then combine that with containerisation features from Kubernetes etc to make packaging easier (again not all projects use a Docker image format). If you're wondering whether Serverless is catching on then see also: AWS Lambda.

But isn't "serverless" fundamentally a restart-the-world model, which would make it more like CGI than FastCGI which is a application server type model which isn't fundamentally that different to putting a reverse proxy in front of a HTTP speaking application server?

[deleted]

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#53

Earlier quoted context omitted.

It's less of CGI (some projects only support that) Think of it like FastCGI where most of the issues with CGI are fixed up (i.e. throughput isn't an issue) and then combine that with containerisation features from Kubernetes etc to make packaging easier (again not all projects use a Docker image format). If you're wondering whether Serverless is catching on then see also: AWS Lambda.

But isn't "serverless" fundamentally a restart-the-world model, which would make it more like CGI than FastCGI which is a application server type model which isn't fundamentally that different to putting a reverse proxy in front of a HTTP speaking application server?

No. In AWS Lambda at least, the container your application runs in lives through multiple requests until some period of inactivity passes and it is shut down. It isn’t “running” in the sense that your code is in control, but long-lived things like database connections do not need to be re-established on every request.

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#54

I'm new to serverless, but I've wondered what happens if: - The function get stuck and run forever? - It causes a request to loop? And you have hundreds or thousands of these "functions" deployed? Couldn't that cause sky-high costs if it goes undetected or even unwanted DDOS against other's infrastructure?

Systems like this must have an extensive quota-and-limits system. It will disallow overlong runtimes or excessive memory use, and if you keep doing that will run out of quota (which is usually attached to billing.)

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#55

I'm new to serverless, but I've wondered what happens if: - The function get stuck and run forever? - It causes a request to loop? And you have hundreds or thousands of these "functions" deployed? Couldn't that cause sky-high costs if it goes undetected or even unwanted DDOS against other's infrastructure?

For now, when adopting FaaS, you must be vigilant to adopt rigorous monitoring and alerting for how your system is behaving so that you can detect situations and correct them before they become significant problems. Of course, the complexity introduced by monitoring flies somewhat in the face of the simplicity of deploying to FaaS, which is friction that your developers must overcome. - Designing Distributed Systems by Brendan Burns

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#56
post #5

Since it's serverless, I assume it runs on the client. How does it scale then? And is the client really the right place to run these functions, in view of performance, and perhaps battery use?

Warning: handwaving ahead. Serverless just means each and every request from the client spins up a process on a cloud platform to handle the request. It is "serverless" in the sense that the actual hardware and OS running the process is completely abstracted away from the developer. You just tell the platform which functions should respond to which routes and the platform handles the load balancing, deployment, and (usually) spins up a container for each request on demand.

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#57

I'm new to serverless, but I've wondered what happens if: - The function get stuck and run forever? - It causes a request to loop? And you have hundreds or thousands of these "functions" deployed? Couldn't that cause sky-high costs if it goes undetected or even unwanted DDOS against other's infrastructure?

The first one is easy, you just have a hard limit on runtime per invocation.

The second is harder. Last I checked, AWS Lambda for example would allow a loop between two functions to run forever. You have to build loop detection into your software.

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#58
Is anyone actually using this (and other open source solutions that do similar things) for anything?

The cloud providers offer "serverless" billing for AWS Lambda/GCP Functions/Azure Functions in the sense that you pay just for the compute time and don't manage the underlying infrastructure.

Outside of vendor lock in, what advantage does running a service like this really offer? To make a system like this usable you'll probably need at least a couple of boxes available 24/7

Re: Apache OpenWhisk – A serverless, open-source cloud platform

#59

Is anyone actually using this (and other open source solutions that do similar things) for anything? The cloud providers offer "serverless" billing for AWS Lambda/GCP Functions/Azure Functions in the sense that you pay just for the compute time and don't manage the underlying infrastructure. Outside of vendor lock in, what advantage does running a service like this really offer? To make a system like this usable you'…

IBM offers that open-source platform as a managed service, IBM Cloud Functions (https://console.bluemix.net/openwhisk/).
Post reply on HN