Module 6: Messaging & Decoupling (SQS)
In a large system, different parts shouldn't talk to each other directly. If one part breaks, the whole system shouldn't fail. This is called Decoupling.
What is SQS?
The Simple Queue Service (SQS) is like a mailbox. One service drops a message off, and another service picks it up when it's ready.
Mission: The Order System
You are building an e-commerce site. When a user buys something, you need to send an order message to the warehouse.
Step 1: Create the Mailbox
Run: aws sqs create-queue --queue-name orders-queue
Step 2: Send an Order
Run: aws sqs send-message --queue-url http://ls-test-aws:4566/000000000000/orders-queue --message-body "New Order #123"
booting...