Skip to main content

Function as a Service

Function as a Service (FaaS) operates as a standalone execution unit which enables users to configure and run individual functions or small units of code and returns results synchronously. Unlike the current pipeline-based architecture, this FaaS module would function independently and interact directly with clients or services requiring immediate responses. It creates and exposes an endpoint like Sources and can be secured by API Access Configuration.

How to create a Function as a Service

To create a Function as a Service:

  1. Login to your cnips instance
  2. Click on Function as a Service in the left navbar
  3. Click New Function.

Function Creation

  1. Provide a name for the Function.
  2. Select API Access Configuration.
  3. Provide some configuration.
  4. Select the scripting language.
  5. Modify script according to your requirement.
  6. Make sure to return the data.
  7. Click on sumbit.