awslabs / aws-lambda-cpp

C++ implementation of the AWS Lambda runtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for the foundation programming model

wduminy opened this issue · comments

The AWS Lambda programming model is very helpful because the function stays in memory, so clients and variables that are declared outside of the handler method in initialization code can be shared across lambda invokes.

I can imagine two processes running and the bootstrap process passing along some information to the running handler process. The concept is described in the AWS docs. Sadly, those same docs link back to this repository.

Obviously, there are many use cases in which there is little need to share resources between invokes; but it does limit what can be done with CPP lambdas somewhat.

Am I missing something?

I was missing something -- this is implemented already. Seems very obvious now :-).