Hi,
I have two questions regarding this component that I was hoping I could get assistance with:
Question 1:
What would be the best way to update data in my application in real time after a message has been received in the queue? The objective would be to use the latest message(s) from the queue and use it to update the database in the application.
I could of course do this asynchronously by calling the 'Message_Receive' action for instance in a timer but I was hoping to do it in real time.
I read that we can create lambda functions in AWS which could possibly call a REST API and in the rest API I would be able to update the necessary data in my application with the 'Message_Receive' action.
Question 2:
I noticed we can purge all messages in the specified queue. Is there a way to just purge a specific message by prividing for instance it's ID?
Thanks in advance.
Ricardo
Hi Ricardo,
Regarding the first question, your sugestions are correct. You can either achieve it using a timer fetching new messages or by having a Lambda triggered by new messages. You can find more details about it on the AWS documentation.
For the second one, the Purge method will delete all messages. To specifically delete some messages, you can call the Message_Delete for each of them.
Regards,
Tarik