SQS (Simple Queue Service) dhe SNS (Simple Notification Service) janë shërbime të AWS-it për mesazhe që mundësojnë komunikim të shkëputur, asinkron midis përbërësve të aplikacionit. SQS është një radhë mesazhesh (përpunim një-për-një); SNS është pub/sub (transmetim një-për-shumë).
SQS — radhë mesazhesh (shkëputje, përpunim asinkron)
SQS is a managed message QUEUE: producers send messages, consumers process them:
→ producer → [QUEUE] → consumer(s) process messages (at their own pace)
→ DECOUPLES components (producer doesn't wait for/depend on the consumer)
→ BUFFERS load (queue absorbs spikes; consumers process steadily)
→ RELIABLE (messages persist until processed; retries; dead-letter queues for failures)
→ SCALABLE (add more consumers to process faster)
→ Use for: async task processing, decoupling services, smoothing load spikes
