This is my setup:
A dockerized environment, with separate docker containers for the RoR backend and the ReactJS frontend. I want to publish events to the AWS SQS Queue and I want to perform actions to MongoDB based on the messaged in the SQS. SQS has been setup to track events on two different buckets say bin and bout. What is the e
Flow of events:
- There is an upload event on bin -> Message1 published to SQS
- The receiver reads message1 off the SQS and decides to perform an action1 -> message2 publish to SQS
- action1 completed -> message3 published to SQS
- The receiver reads message3 and decided to update Mongo to reflect this action being performed.
My questions:
- I want the backend to take care of the receiver but I am not sure on how I would start implementing this, since I don't want to run a cron job on my dockerized container as it seems like a pain (here)
- Also I am planning to delete the messages once they have been processed/read.
Can someone give me an insight into this? LMK if I need to draw up a diagram to explain the flow. Thanks!