alexellis / faas
- четверг, 23 марта 2017 г. в 03:11:41
Go
Functions as a Service (on Docker Swarm)
FaaS is a platform for building serverless functions on Docker Swarm Mode with first class metrics. Any UNIX process can be packaged as a function in FaaS enabling you to consume a range of web events without repetitive boiler-plate coding.
Read the story of FaaS on my blog or find out more about the project below.
docker swarm init
)You can test-drive FaaS with a set of sample functions as defined in docker-compose.yml on play-with-docker.com for free, or on your own laptop.
Highlights:
Ease of use through UI portal
Setup a working environment with one script
Portable - runs on any hardware
Baked-in Prometheus metrics
Any container can be a function
Auto-scales as demand increases
Here is a screenshot of the API gateway portal - designed for ease of use.
FaaS is still expanding and growing, check out the developments around:
See how to deploy FaaS onto play-with-docker.com and Docker Swarm in 1-2 minutes. See the sample functions in action and watch the graphs in Prometheus as we ramp up the amount of requests.
Prometheus is built into FaaS and the sample stack, so you can check throughput for each function individually with a rate function in the UI at port 9090 on your Swarm manager.
If you are new to Prometheus, you can start learning about metrics and monitoring on my blog: