osiris icon indicating copy to clipboard operation
osiris copied to clipboard

Abstraction for lambdas

Open cjkent opened this issue 7 years ago • 1 comments

A wrapper around a lambda that can be invoked directly or asynchronously via a send() method.

AWS implementation that is initialised with an environment var containing the ARN to the lambda.

In-memory implementation that just wraps the function directly.

The components provider can define an abstract property for the function and there can be different implementations for local testing and deployment to AWS.

cjkent avatar Jan 03 '18 21:01 cjkent

This would be particularly useful for endpoints that need to start an async calculation and return a response to the caller while the calculation is still ongoing. The obvious way to do this is to make an async call to another lambda. But that is painful using the lambda SDK.

cjkent avatar Mar 01 '18 16:03 cjkent