Juned Memon
Juned Memon Good for nothing

Comparision of Function As a Service Frameworks

Comparision of Function As a Service Frameworks

Comparison

Function defination

Below is the example of sample python function

kubeless

1
2
3
def hello(event, context):
  print event
  return event['data']

fission

1
2
3
4
from flask import current_app
def main():
    current_app.logger.info("This is log message")
    return "My First Example"

openfass

1
2
3
def handle(req):
    print("Hello! You said: " + req)
    return req

knative

1
2
3
4
5
6
7
8
9
import os
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
   target = os.environ.get('TARGET', 'World')
   return 'Hello {}!\n'.format(target)
if __name__ == "__main__":
   app.run(debug=True,host='0.0.0.0',port=int(os.environ.get('PORT', 8080)))

compare to the standard aws lamda function defination

1
2
3
def handler_name(event, context): 
    ...
    return some_value

Looking at above , the kubeless is 100% compatible with aws lambda.

So if you are migrating from existing aws lamda to kubernetes service, this can be a huge win.


TODO - Add more details.

comments powered by Disqus