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
490
RailsDM2019: On the lonely rail of Engineering Management
koichiro
1
2.3k
dots.女子会:エンジニア夫婦Meetup
koichiro
0
600
Focuslight, Jobs and OSS
koichiro
1
78
Between front-end and server-side in service development
koichiro
0
810
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
Code Reviewing Like a Champion
maltzj
520
39k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
The Invisible Side of Design
smashingmag
298
50k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
What's new in Ruby 2.0
geeforr
343
31k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Embracing the Ebb and Flow
colly
84
4.5k
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ཁૉ͔Β୳ͯ͠
͜ͳ͍ͱ͍͚ͳ͍)