I'd like to achieve near real time search for a document service, and here is my idea:
- I plan to use DynamoDB as my primary document store;
- and then whenever a new document update happens, an event in DynamoDB stream is created;
- I'd like to ask CloudSearch to pick up the events in the stream and update the index in CloudSearch
My question is how to integrate DynamoDB stream with CloudSearch. I feel I could use Lambda function in between (i.e., trigger a lambda function, which execute a write/update the index operation, to process an event in the stream). I would work, but I just feel it may be an expensive way to achieve my goal (because lambda cost $$).
Does Amazon provide any hook that directly integrate DynamoDB stream with CloudSearch? I am wondering this approach because of the following illustration figure (it clearly implied that CloudSearch and Lambda are different integration point).