Reputation: 2529
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
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