rOrlig
rOrlig

Reputation: 2529

sharing variables across two aws lambda functions

I have two AWS lambda functions - lambdaA and lambdaB.

The http client calls API Gateway endpoint A that invokes lambdaA which generates a uuid and returns to the client.

The client then calls API Gateway endpoint B that invokes lambdaB and passes uuid generated by lambdaA to lambdaB. How does lambdaB verify the uuid is generated by lambdaA.

I could think of using a cache - elastic cache or db - dynamodb. But I don't like elastic cache as it runs a server and dynamodb is probably a little too heavy for my simple use case.

Is there any other simpler way of caching data with AWS lambda.

Upvotes: 6

Views: 1545

Answers (1)

Rez Moss
Rez Moss

Reputation: 4604

DynamoDB and Elasticache recommended. Also, read the following article by Kenneth Falck:

Amazon AWS Lambda data caching solutions compared

and How HipChat Stores And Indexes Billions Of Messages Using ElasticSearch And Redis

Upvotes: 2

Related Questions