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
500
RailsDM2019: On the lonely rail of Engineering Management
koichiro
1
2.3k
dots.女子会:エンジニア夫婦Meetup
koichiro
0
600
Focuslight, Jobs and OSS
koichiro
1
79
Between front-end and server-side in service development
koichiro
0
810
2014-01-25 Engineer x Engineer Meeting - en-japan
koichiro
5
4.1k
Everyleaf Chronicle
koichiro
6
2k
TechHills#05 real legacy
koichiro
0
2.1k
Salaryman
koichiro
5
2.1k
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
Scaling GitHub
holman
458
140k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Writing Fast Ruby
sferik
628
61k
Documentation Writing (for coders)
carmenintech
66
4.5k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Mobile First: as difficult as doing things right
swwweet
222
9k
Optimising Largest Contentful Paint
csswizardry
33
3k
How GitHub (no longer) Works
holman
311
140k
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ཁૉ͔Β୳ͯ͠
͜ͳ͍ͱ͍͚ͳ͍)