AWS SNS
Amazon Simple Notification Service (SNS) คือ service ที่ใช้เพื่อในการ set up, operate และ ส่ง notification ผ่าน cloud (push mechanism)
ซึ่งทํางานในรูปแบบของ Publisher-Subscriber pattern

ซึ่งการส่ง Notification ของ SNS ทําได้หลากหลายมากตั้งแต่ Apple, Google, Fire OS, Window devices, Android devices ในจีนได้อีกด้วย
ไม่ใช่แค่นั้นมันยังสามารถส่ง SMS text message หรือ email ไปที่ HTTP endpoint ไหนก็ได้ หรือ ไป trigger Lambda function ก็ได้เช่นกัน
SNS ประกอบด้วย
- Publisher
- Topic
- Subscriber
สิ่งที่ต้องจัดการคือ Subscriber ต้องมา subscribe ที่ Topic ที่ต้องการเพื่อรับ notification นั้นๆ
SNS เวลาที่เราจะ Publish Request Arguments
- Message
- MessageAttributes
- MessageStructure
- PhoneNumber
- Subject
- TargetArn
- TopicArn
SNS Pricing
เราแบ่งตาม cost ของ Chanel ที่ใช้
โดยพื้นฐานเมื่อ SNS มีการ requests เราจ่ายที่ $0.50/1,000,000 requests
- HTTP อยู่ที่ $0.06/100,000 notification deliveries
- SMS อยู่ที่ $0.75/100 notification deliveries
- Email อยู่ที่ $2/100,000 notification deliveries