AWS SNS

Mart — Tanathip Viriya
1 min readJun 12, 2020

Amazon Simple Notification Service (SNS) คือ service ที่ใช้เพื่อในการ set up, operate และ ส่ง notification ผ่าน cloud (push mechanism)

ซึ่งทํางานในรูปแบบของ Publisher-Subscriber pattern

https://aws.amazon.com/pub-sub-messaging/

ซึ่งการส่ง Notification ของ SNS ทําได้หลากหลายมากตั้งแต่ Apple, Google, Fire OS, Window devices, Android devices ในจีนได้อีกด้วย

ไม่ใช่แค่นั้นมันยังสามารถส่ง SMS text message หรือ email ไปที่ HTTP endpoint ไหนก็ได้ หรือ ไป trigger Lambda function ก็ได้เช่นกัน

SNS ประกอบด้วย

  1. Publisher
  2. Topic
  3. 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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response