Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SendGrid Night #04
Search
Koichiro Ohba
May 19, 2016
1
1.4k
SendGrid Night #04
SendGrid導入のお話し
Koichiro Ohba
May 19, 2016
Tweet
Share
More Decks by Koichiro Ohba
See All by Koichiro Ohba
Speee LT for Kaigi on Rails 2021
koichiro
0
470
RailsDM2019: On the lonely rail of Engineering Management
koichiro
1
2.3k
dots.女子会:エンジニア夫婦Meetup
koichiro
0
590
Focuslight, Jobs and OSS
koichiro
1
75
Between front-end and server-side in service development
koichiro
0
800
2014-01-25 Engineer x Engineer Meeting - en-japan
koichiro
5
4k
Everyleaf Chronicle
koichiro
6
2k
TechHills#05 real legacy
koichiro
0
2.1k
Salaryman
koichiro
5
2k
Featured
See All Featured
Bash Introduction
62gerente
608
210k
A Tale of Four Properties
chriscoyier
155
22k
Raft: Consensus for Rubyists
vanstee
135
6.5k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
What's in a price? How to price your products and services
michaelherold
242
11k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
278
13k
5 minutes of I Can Smell Your CMS
philhawksworth
201
19k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
157
15k
Transcript
SendGridۤ࿑ SendGrid Night #04; 2016-05-19
גࣜձࣾΫϥυϫʔΫε CTO
ಋೖͨ͠ͱ͖ʹେมͩͬͨ͜ͱ
CrowdWorks.jp user: 900000 mail: 4m/mon
None
SendGridΛಋೖ͢ΔͨΊʹ ॏཁͳ͜ͱ
IPΞυϨεͷ৴པੑ ࣮ͷແ͍IPΞυϨε͔Βͷϝʔ ϧૹ৴εύϜϝʔϧఆ͞Ε ͘͢Ϣʔβʔʹಧ͔ͳ͍͜ͱ͕͋ ΔʢಛʹΩϟϦΞϝʔϧʣ
IP Warm up
ΥʔϜΞοϓ ̍࣌ؒ͋ͨΓͷૹ৴ᮢ
None
None
None
None
ಥવͷΞΧϯτౚ݁
தҪ͞Μͷखް͍αϙʔτ
Spam mail trap
ରࡦ
Mail Confirm Campaign
ਓ͕ड͚औ͍ͬͯΔϝʔϧΞ υϨε͚ͩΛEvent HookΛ ར༻ͯ͠நग़͠ɺΫϦʔϯͳ ϝʔϧΞυϨεΛཧ͢Δ
DynamoDBʹอଘͨ͠ΫϦʔϯͳϝʔ ϧΞυϨεͱ͖͋Θͤͯ৴͢Δ
͍ͨͤͭͳ͜ͱ
͍͘Β४උࣦͯ͠ഊ͢Δ͜ ͱ͕͋Δ
ΫϦʔϯͳϝʔϧΞυϨεͷҡ࣋
͚Δ (ϦεΫΛ࠷খԽ͢Δ)
IPΛ༻్ʹΑ͚ͬͯΔ
υϝΠϯΛ༻్ʹΑ͚ͬͯΔ
αϒϢʔβʔΛ༻్ʹΑ͚ͬͯΔ
͚͓͍ͯͨ͜ͱͰٹΘΕͨ͜ͱ • ౚ݁͞Ε͍ͯͳ͍αϒΞΧϯτӡ༻ΛܧଓͰ͖ͨ • ϒϥοΫϦετʹొ͞Εͨͱ͖ͷӨڹൣғ͕ݶఆత
͍·औΓΜͰ͍Δ͜ͱ
Meldium (https:// www.meldium.com/)ͱΈ ߹ΘͤͯϢʔβʔαϙʔτͱ αϒΞΧϯτΛڞ༗ɻ ͍߹ΘͤͷରԠΛޮԽɻ
SendGridͷEvent HookΛ API GatewayͰड͚औΔ
None
DatadogͰදࣔ
SendGridͷཁ
Subuserૹ৴ྔΛΈ͍ͨ
APIΛͬͱ͍͘͢
Event hookʹෳͷ endpointΛొ͍ͨ͠
Parse hookʹෳͷendpointରԠ΄͍͠ • ड͚ΔϝʔϧΞυϨεʹΑͬͯPOSTઌͷURLΛ ม͍͑ͨ • ਖ਼نදݱͰendpointΛৼΓ͚Δ(MandrillͰ ͖·͢) • DateͷΛͱΓ͍ͨ(headersཁૉ͔Β୳ͯ͠
͜ͳ͍ͱ͍͚ͳ͍)