Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fission Introduction

Fission Introduction

Ta-Ching Chen

March 19, 2018
Tweet

More Decks by Ta-Ching Chen

Other Decks in Programming

Transcript

  1.   •About me •What is FaaS •What is Fission

    •How to use Fission •Fission architecture •How to contribute •Conclusion •Reference 065-*/&
  2.   "#065.& •Ta-Ching Chen ꤫㣐䣔  •DevOps/Backend Engineer •

    System Architecture Design/Implementation, Performance Tuning •Blog: https://tachingchen.com/tw/ •Email: [email protected]
  3.   8)"5*4'""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
  4.   8)"5*4'*44*0/ Fast Serverless Functions for Kubernetes “ ”

    A fast serverless framework for Kubernetes with a focus on developer productivity and high performance.
  5.   8)"5*4'*44*0/ DPOU •Written in Go of course •Short

    cold-start overhead (~100ms) •Currently support environment: •Go •NodeJS •PHP7 •Python3 •.Net
  6.   )085064&'*44*0/ # 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
  7.   $0/$-64*0/ •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
  8.   3&'&3&/$& •Fission •Fission serverless functions as service for

    kubernetes •What is function as a service •Iaas Faas Serverless