7 ms·
Functions as a Service: Serverless Framework for Docker and Kubernetes
- rcarmo 9y agoIn case someone is looking for a way to run and deploy this to a public cloud (in my case Azure), there is an extant pull request here that will set up a dynamically resizable Swarm cluster: https://github.com/get-faas/labs-azure-scaling-template/pull/1 https://github.com/get-faas/labs-azure-scaling-template/pull... This allows the FaaS runtime to dynamically allocate more Swarm nodes based on CPU load (indirectly, using Azure VM scale sets). I've been meaning to see how I could tie in Azure Container Instances to FaaS, but currently lack the time (and to do that it would need to cleanly separate the admin UI from function endpoints, something that wasn't implemented yet a few weeks ago).
- alexellisuk 9y agoFunction endpoints take a route of /function or /async-function and all administration is via /system/functions route and the UI is hosted at /ui - so you have all the separation in place. There's an open issue for ACI - would be great if you wanted to contribute to the project. https://github.com/alexellis/faas/issues/117 https://github.com/alexellis/faas/issues/117
- rcarmo 9y agoI meant separating the admin UI completely, into its own process/container and IP/port, distinct from the reverse proxy. Route separation just means I can DoS the admin UI by invoking functions repeatedly - which will eventually happen even with "production" loads.
- mobiletelephone 9y agoThis looks very interesting. Does anyone have any experience with this for C++ functions vs AWS Lambda?
- amq 9y agoIs it realistic to keep a complex system built around functions and microservices in a small organization?
- vanviegen 9y agoWhy would you want to? Honest question.
- hbt 9y agoat the moment. we lack the software for proper faas orchestration I do believe with docker faas rest swagger, we will have a solution which allows you to write a function, define its input and output with a schema like swagger, define its dependencies with docker, expose it as a service rest, call at scale with faas. this also makes API discovery and reliability much easier
- DJN 9y agoWell chosen name. Two questions: 1. How does this square up with the efforts within the Serverless community? https://github.com/serverless/serverless https://github.com/serverless/serverless 2. Does OpenFaas assume that the smallest unit of work for each function or domain of functions is always a unique container? In other words, does it support scenarios where one needs to deploy a new function into an existing/running container?
- alexellisuk 9y agoThe Serverless Inc project helps you deploy to closed-source cloud vendor function products using YAML. OpenFaaS is an open-source Serverless framework to do largely the same thing, but you can use cloud servers or your own on-prem equipment. Checkout the intro for more comparisons to other projects https://blog.alexellis.io/introducing-functions-as-a-service/ https://blog.alexellis.io/introducing-functions-as-a-service...
- zokier 9y agoIs this just for web stuff? One of the key aspects (imo) about Lambda is how it integrates to other AWS services, allowing the code to react to all sorts of events.
- fohara 9y agoSeems similar to OpenWhisk: https://github.com/apache/incubator-openwhisk https://github.com/apache/incubator-openwhisk . The built-in metrics reporting of OpenFaas looks useful though.
- alexellisuk 9y agoFor a great live demo of the auto-scaling and metrics shown in Grafana see my video from Dockercon's Cool Hacks closing ceremony - https://www.youtube.com/watch?v=-h2VTE9WnZs&t=1058s https://www.youtube.com/watch?v=-h2VTE9WnZs&t=1058s
- keithwhor 9y agoThis is great stuff! If anybody's looking further up the stack and executing functions via HTTP / etc. via a gateway, we've developed a formal specification called FaaSlang [1] that includes type-safety mechanisms and standardized error reporting. This can be connected above your FaaS provisioning system; whether it's in front of cloud-native offerings like Lambda or Azure Functions, or you're running a system like OpenFaaS yourself. FaaSlang defines execution semantics, it is not opinionated about where functions are stored or how they're run. [1] https://github.com/faaslang/faaslang https://github.com/faaslang/faaslang
- hbt 9y agothis is pretty cool. you can also convert it to swagger and restify your function. the main benefit is annotations in comments
- deleted 9y ago[deleted]
- droelf_ 9y agoLast time I checked (a couple of minutes ago), NONE of those "serverless" frameworks were truly serverless. Running your stuff or even your "functions" in the "cloud" is still running it on a server. Just because you do not know which specific server is running it at a given time does not make it "serverless". Why is it so hard to use the correct term?
- ec109685 9y agoWhy doesn't not caring what server a function is running on and allowing a piece of code to jump from one host to another not constitute serverless, a term that has come to mean exactly that?
- droelf_ 9y agoBecause it's still using a server. large scale distributed resource abstracting server network (short lsd-rasn) or something along these lines would be more accurate.
- cwilkes 9y agoDo you also rail against "wireless" phones as there's wires involved somewhere? It is called serverless as in the ideal state you let the scaling of the server be handled by someone else. Just like with cell phones you only care about the last bit before it gets to you.
- dundercoder 9y agoIs the goal of Lambda/OpenFaaS to basically be cgi/bin in a box? (Container) Would sandboxed cgi/fcgi be faster at forking than spinning up a container?
- alexellisuk 9y agoThat's not far off what's happening, but in containers. For a deeper dive on the mechanics of OpenFaaS checkout the intro https://blog.alexellis.io/introducing-functions-as-a-service/ https://blog.alexellis.io/introducing-functions-as-a-service... and then the watchdog README here - https://github.com/alexellis/faas/tree/master/watchdog https://github.com/alexellis/faas/tree/master/watchdog
- edude03 9y agoAlso checkout Funktion
- _Marak_ 9y agoIf anyone is interested in doing this without the additional requirements of Docker and Kubernetes check out Microcule. https://github.com/stackvana/microcule https://github.com/stackvana/microcule
- rcarmo 9y agoThis is cute. And it looks like it can leverage Docker as well, with a few tweaks. I especially like the agnosticism of it.
- _Marak_ 9y agoThanks! I built this by refactoring out the core technology which hook.io uses in production and put it into a separate open-source project. By design, Microcule operates without needing containers or virtual machines. It's up to the user how they wish to isolate their services. I have heard from a few users who have successfully incorporated Microcule with Docker in production. see: https://github.com/stackvana/microcule#no-containers https://github.com/stackvana/microcule#no-containers
- alexellisuk 9y agoHi, OpenFaaS author here - it feels like I'm late to the party here. I can see lots of folks chiming-in with their projects which you are welcome to do. I agree with you that this is a confusing landscape with lots of options. Here's my introduction to OpenFaaS (and Serverless), the top 3 new features and what's coming next: https://blog.alexellis.io/introducing-functions-as-a-service/ https://blog.alexellis.io/introducing-functions-as-a-service... If you have 10-15 minutes you can just jump in with your own serverless function in Python with this guide - https://blog.alexellis.io/first-faas-python-function/ https://blog.alexellis.io/first-faas-python-function/
- alexellisuk 9y agoI presented Open/FaaS at Dockercon in April showing an Amazon Echo dot with voice skills, integration with 3rd party data, GitHub/S3 and auto-scaling in response to demand - it's a nice high-level overview - https://www.youtube.com/watch?v=-h2VTE9WnZs&t=1058s https://www.youtube.com/watch?v=-h2VTE9WnZs&t=1058s