4. •Function as a Service
•AWS Lambda, Google Cloud Function
•Pros:
•developer focus on code snippets
•short cold-start
•horizontal scaling
•pay as you go (!=cheap)
•Cons:
•vendor lock-in
•hard to test
•environmental limitation
•limited execution time per request
5. Fast Serverless Functions for Kubernetes“
”A fast serverless framework for Kubernetes
with a focus on developer productivity and high performance.
6. •Written in Go of course
•Short cold-start overhead (~100ms)
•Currently support environment:
•Go
•NodeJS
•PHP7
•Python3
•.Net
7. # Add the stock NodeJS env to your Fission deployment
$ fission env create --name nodejs --image fission/node-env
# A javascript one-liner that prints "hello world"
$ curl https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js > hello.js
# Upload your function code to fission
$ fission function create --name hello --env nodejs --code hello.js
# Map GET /hello to your new function
$ fission route create --method GET --url /hello --function hello
# Run the function. This takes about 100msec the first time.
$ curl http://$FISSION_ROUTER/hello
Hello, world!
Never Live Demo
11. •Short cold-start overhead (~100ms)
•Suitable for developers want to set up their own FaaS
•Customize environment image
•Adjustable execution time
•Cheaper than FaaS under heavy usage