SQS

Untitled

Synchronous between applications can be problematic if there are sudden spikes of traffic • What if you need to suddenly encode 1000 videos but usually it’s 10? • In that case, it’s better to decouple your applications, using SQS: queue model using SNS: pub/sub model using Kinesis: real-time streaming model • These services can scale independently from our application!

Queuing is used to decouple ur application and give it a breather

SQS can duplciate or send one messgage more than one time, and can mess up the order of msgs

Untitled

Untitled

sendmessage API is used to sned msgs to the queue

Untitled

consuemr will keep aksing queus if u have msgs for me, if it does, it can send upto 10 msgs at a tiem

there could be different msgs, like insert in rds and wo hojaye ga

ur consumer after processinfg will delete msgs using api

Untitled

will receive when instnaces call a poll function, aur different sets of msgs will be received by different instnaces

Untitled

THIS asg helps in improivng throughput

Untitled