Upgrade to Pro — share decks privately, control downloads, hide ads and more …

SendGrid Night #04

Koichiro Ohba
May 19, 2016
1.3k

SendGrid Night #04

SendGrid導入のお話し

Koichiro Ohba

May 19, 2016
Tweet

Transcript

  1. SendGridۤ࿑࿩
    SendGrid Night #04; 2016-05-19

    View full-size slide

  2. גࣜձࣾΫϥ΢υϫʔΫε
    CTO

    View full-size slide

  3. ಋೖͨ͠ͱ͖ʹେมͩͬͨ͜ͱ

    View full-size slide

  4. CrowdWorks.jp
    user: 900000
    mail: 4m/mon

    View full-size slide

  5. SendGridΛಋೖ͢ΔͨΊʹ
    ॏཁͳ͜ͱ

    View full-size slide

  6. IPΞυϨεͷ৴པੑ
    ࣮੷ͷແ͍IPΞυϨε͔Βͷϝʔ
    ϧૹ৴͸εύϜϝʔϧ൑ఆ͞Ε΍
    ͘͢Ϣʔβʔʹಧ͔ͳ͍͜ͱ͕͋
    ΔʢಛʹΩϟϦΞϝʔϧʣ

    View full-size slide

  7. ΢ΥʔϜΞοϓ೔਺ ̍࣌ؒ͋ͨΓͷૹ৴਺ᮢ஋

















    View full-size slide

  8. ಥવͷΞΧ΢ϯτౚ݁

    View full-size slide

  9. தҪ͞Μͷखް͍αϙʔτ

    View full-size slide

  10. Spam mail trap

    View full-size slide

  11. Mail Confirm Campaign

    View full-size slide

  12. ਓ͕ड͚औ͍ͬͯΔϝʔϧΞ
    υϨε͚ͩΛEvent HookΛ
    ར༻ͯ͠நग़͠ɺΫϦʔϯͳ
    ϝʔϧΞυϨεΛ؅ཧ͢Δ

    View full-size slide

  13. DynamoDBʹอଘͨ͠ΫϦʔϯͳϝʔ
    ϧΞυϨεͱ෇͖͋Θͤͯ഑৴͢Δ

    View full-size slide

  14. ͍ͨͤͭͳ͜ͱ

    View full-size slide

  15. ͍͘Β४උͯ͠΋ࣦഊ͢Δ͜
    ͱ͕͋Δ

    View full-size slide

  16. ΫϦʔϯͳϝʔϧΞυϨεͷҡ࣋

    View full-size slide

  17. ෼͚Δ
    (ϦεΫΛ࠷খԽ͢Δ)

    View full-size slide

  18. IPΛ༻్ʹΑͬͯ෼͚Δ

    View full-size slide

  19. υϝΠϯΛ༻్ʹΑͬͯ෼͚Δ

    View full-size slide

  20. αϒϢʔβʔΛ༻్ʹΑͬͯ෼͚Δ

    View full-size slide

  21. ෼͚͓͍ͯͨ͜ͱͰٹΘΕͨ͜ͱ
    • ౚ݁͞Ε͍ͯͳ͍αϒΞΧ΢ϯτ͸ӡ༻ΛܧଓͰ͖ͨ
    • ϒϥοΫϦετʹొ࿥͞Εͨͱ͖ͷӨڹൣғ͕ݶఆత

    View full-size slide

  22. ͍·औΓ૊ΜͰ͍Δ͜ͱ

    View full-size slide

  23. Meldium (https://
    www.meldium.com/)ͱ૊Έ
    ߹ΘͤͯϢʔβʔαϙʔτͱ
    αϒΞΧ΢ϯτΛڞ༗ɻ
    ໰͍߹ΘͤͷରԠΛޮ཰Խɻ

    View full-size slide

  24. SendGridͷEvent HookΛ
    API GatewayͰड͚औΔ

    View full-size slide

  25. DatadogͰදࣔ

    View full-size slide

  26. SendGrid΁ͷཁ๬

    View full-size slide

  27. Subuser΋ૹ৴ྔΛΈ͍ͨ

    View full-size slide

  28. APIΛ΋ͬͱ࢖͍΍͘͢

    View full-size slide

  29. Event hookʹෳ਺ͷ
    endpointΛొ࿥͍ͨ͠

    View full-size slide

  30. Parse hookʹ΋ෳ਺ͷendpointରԠ΄͍͠
    • ड͚ΔϝʔϧΞυϨεʹΑͬͯPOSTઌͷURLΛ
    ม͍͑ͨ
    • ਖ਼نදݱͰendpointΛৼΓ෼͚Δ(Mandrill͸Ͱ
    ͖·͢)
    • Dateͷ೔෇ΛͱΓ͍ͨ(headersཁૉ͔Β୳ͯ͠
    ͜ͳ͍ͱ͍͚ͳ͍)

    View full-size slide