App Connector (a.k.a. app_proxy) is a gateway that gives the Apination HUB access to a specific 3rd party API. Think about it as an App itself. Connector describes all triggers and actions available for the particular App it 'connects' to the system. It also contains metadata that is used to show an App on UI.

At the moment, Connector can be implemented as a standalone HTTP service, or as a set of AWS Lambda functions. You can read about the differences in the HTTP Service vs Lambdas section, but this help mainly focuses on Lambda-based connectors.

Lambda Connector Overview

Connector Functions

Each of the connector components gets implemented as a separate AWS Lambda function.

An exact set of functions is determined by BA and described in a connector spec, but typically connector consists of:

General Rules

A set of general rules applies to all Lambda functions being developed:

  • function must be stateless, if that’s possible (see Date Ranges Processing
  • function must validate input and fail early, if the received data does not match the expected format (see Exceptions in the Programming Model)
  • function must handle API errors and provide them to the invoking party as handled Lambda exceptions (see Exceptions in the Programming Model)
  • function should log enough information, but should NOT log any user sensitive data (see Logging)
  • function should use (expect on input and produce on output) standard data types

Differences from self-hosted HTTP connectors

Apination connectors can be implemented as self-hosted HTTP services. If you are familiar with such ones, here are the differences. Lambda-based connectors…

  • should not host HTTP interface
  • should not register itself at the HUB (see Connector Description)
  • should not submit log messages to the HUB (see Logging)
  • receives already decrypted user credentials (user credentials are being decrypted in the lambda-http-proxy service)
  • should not care about multithreading (a standalone environment is created on each function invocation)
  • must upload large streams to Amazon S3 instead of returning them in response
  • each trigger/method should be deployed as a separate lambda-function

HUB, Proxy, and Lambda interaction

HUB-Lambda Interaction