Funktion
open source event based lambda programming for kubernetes

Example


lets install the platform, runtimes and a connector:

                    
$ funktion install platform
$ funktion install runtime
$ funktion install connector timer
                    
                

now lets create a function and bind it to a flow of events:

                    
$ funktion create fn -n myfunk -s 'module.exports = function(context, callback) { callback(200, "Hello, world!\n"); }'
$ funktion create flow timer://bar?period=5000 http://myfunk/
                    
                

if we have some javascript files like this example in a local folder foo we can watch those and then just edit them in our editor:

                    
$ funktion create fn -f foo
                    
                

view the logs of the function:

                    
$ funktion logs hello
                    
                

debug the JavaScript using Chrome:

                    
$ funktion debug fn hello -c

Forwarding from 127.0.0.1:5858 -> 5858
Forwarding from [::1]:5858 -> 5858

To Debug open: chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5858/5d8d25e3-855f-409e-9761-5acd220a7d89                    
                

About


Create Functions in any programming language and have them exposed automatically over HTTP/HTTPS.

Create Flows to subscribe from over 200 event sources to invoke your function including most databases, messaging systems, social media and other middleware and protocols.

Community


-->