From the course: AWS Essential Training for Developers

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Buffer data with a message queue

Buffer data with a message queue

- When new data needs to be written to your database, your database engine may place a lock or a hold on the table that you're writing to and this is going to prevent other users from reading from that table until you're done writing your new data. Now, when you have a lot of data streaming into your database, this wait time on reading from the tables can really slow down your application. A queue temporarily store the data that you need to write, so that a spike in incoming data doesn't cause your database to melt down. This means that your application's users aren't sitting around waiting on your database, so they can move on and keep using the rest of your app and their data will be written later. This is just one use case for a queue and there's several other use cases, such as creating a messaging framework to help the components of your app talk to each other without relying on the database for this. In AWS, two…

Contents