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
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Why Our Code Smells
bkeepers
PRO
334
57k
YesSQL, Process and Tooling at Scale
rocio
169
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
A Philosophy of Restraint
colly
203
16k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Practical Orchestrator
shlominoach
186
10k
Gamification - CAS2011
davidbonilla
80
5k
Six Lessons from altMBA
skipperchong
27
3.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ཁૉ͔Β୳ͯ͠
͜ͳ͍ͱ͍͚ͳ͍)