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

ginco-engineer-meetup-2019-04-11

 ginco-engineer-meetup-2019-04-11

Tomokazu Kozuma

April 11, 2019
Tweet

More Decks by Tomokazu Kozuma

Other Decks in Technology

Transcript

  1. LTͱ'JSFCBTFΛ࢖ͬͨ
    Ծ૝௨՟΢ΥϨοτͷόοΫΤϯυ
    Tomokazu Kozuma
    2019 / 04/ 11 / THU
    Ginco Engineer Meetup

    View full-size slide

  2. A B O U T M Y S E L F
    ࣗݾ঺հ
    Tomokazu Kozuma
    @Tomokazu106
    ౦ژ޻ۀେֶେֶӃଔۀޙɺαΠόʔΤʔδΣϯτͰεϚϗήʔϜͷαʔόɺΠϯ
    ϑϥશൠΛ୲౰ɻԾ૝௨՟ʹ͍ٕͭͯज़ϒϩάΛॻ͍ͯΔ͏ͪʹ຅಄͠ɺຊ৬ͱ
    ͯ͠஫ྗ͢ΔͨΊʹ(JODPʹೖࣾɻ(JODPͰ͸ϒϩοΫνΣʔϯͷϊʔυӡ༻ɺ
    ϋʔυϑΥʔΫରԠɺόοΫΤϯυͳͲ޿ൣғΛ୲౰ɻ

    View full-size slide

  3. 5
    5
    A g e n d a
    Ծ૝௨՟΢ΥϨοτʹ͍ͭͯ
    ΢ΥϨοτͷόοΫΤϯυʹ͍ͭͯ
    ΢ΥϨοτҎ֎ͷػೳʹؔͯ͠
    ֓ཁ

    View full-size slide

  4. Ծ૝௨՟΢ΥϨοτʹ͍ͭͯ
    P A R T 1

    View full-size slide

  5. ϒϩοΫνΣʔϯͱ͸ʁ
    • ୭ͷڐՄ΋ͳ͘ӡ༻Ͱ͖ɺ୭Ͱ΋த਎Λ͔֬ΊΕΔ
    • ϊʔυ͸ੈքதͰӡ༻͞Ε͍ͯͯɺ૬ޓʹσʔλΛ΍Γ
    ͱΓ͢Δ͜ͱͰಉ͡σʔλΛಉظ͍ͯ͠Δ
    • "͕#ʹૹͬͨͱ͍͏ཤྺΛอ࣋ʢτϥϯβΫγϣϯʣ
    • ϒϩοΫνΣʔϯϊʔυͷ৘ใΛͲ͏ѻ͏͔͕΢ΥϨο
    τΛ࡞Δ্Ͱॏཁ
    W h a t ’ s B l o c k c h a i n

    View full-size slide

  6. ΢ΥϨοτͱ͸ʁ
    • Ծ૝௨՟ͷૹडۚɺऔҾཤྺɺࢿ࢈؅ཧ͢Δ΋ͷ
    • ࢿ࢈ʹඥͮ͘ൿີ伴Λ؅ཧ͍ͯ͠Δ
    • ൿີ伴Λ࢖ͬͯॺ໊ͯ͠ૹۚͰ͖Δ
    • ൿີ伴ˠެ։伴ˠΞυϨεΛੜ੒ͯ͠Ծ૝௨՟Λड͚
    औΕΔ
    W h a t ’ s W a l l e t

    View full-size slide

  7. ΢ΥϨοτͷछྨ
    • αʔόܕʢऔҾॴɺ#MPDLDIBJOJOGPɺ.POBQQZʣ
    ɹɹαʔόଆͰ؅ཧ͢ΔͷͰࣗ෼Ͱൿີ伴Λ؅ཧͰ͖ͳ͍
    • ΫϥΠΞϯτܕʢ(JODP &MFDUSVN 5SVTUʣ
    ɹɹࣗ෼ͷ୺຤ͷΈͰൿີ伴Λ؅ཧ͢Δ
    T y p e o f W a l l e t

    View full-size slide

  8. P r o s a n d C o n s
    Ϣʔβࢹ఺ͰͷϝϦοτσϝϦοτ
    ϝϦοτ σϝϦοτ
    αʔόܕ ൿີ伴؅ཧͷख͕ؒল͚Δ ϋοΧʔ͔ΒૂΘΕ΍͍͢
    ΫϥΠΞϯτܕ
    ʢ(JODPʣ
    ࢿ࢈Λࣗ෼Ͱ؅ཧͰ͖Δ
    ։ൃݩʹѱҙ͕
    ͋Δͱ౪·ΕΔ

    View full-size slide

  9. Bitcoin
    Cash
    Crypto Wallet

    View full-size slide

  10. ·ͱΊͯͻͱͭʹ
    Bitcoin
    Bitcoin
    Cash
    Litecoin
    XRP
    Ethereum
    Classic
    Ethereum

    View full-size slide

  11. ෳ਺ͷԾ૝௨՟Λ·ͱΊͯ؅ཧ

    View full-size slide

  12. ΢ΥϨοτͷόοΫΤϯυʹ͍ͭͯ
    P A R T 2

    View full-size slide

  13. ΢ΥϨοτʹඞཁͳ΋ͷ
    W h a t ’ s n e e d
    ɾૹۚػೳ
    ॺ໊ॲཧɺωοτϫʔΫ΁ͷૹ৴
    ɾϒϩοΫνΣʔϯϊʔυӡ༻ ,VCFSOFUFT (,&

    $MPVE'VODUJPOT
    ɾऔҾཤྺɺ࢒ߴ؅ཧ
    τϥϯβΫγϣϯ؅ཧ
    $MPVE'JSFTUPSF
    ΞυϨε௨՟ผͷ࢒ߴ؅ཧ

    View full-size slide

  14. ϒϩοΫνΣʔϯϊʔυӡ༻

    View full-size slide

  15. ϒϩοΫνΣʔϯϊʔυӡ༻Ͱେࣄͳ͜ͱ
    • Մ༻ੑʢ̒छྨϊʔυʣ
    • όʔδϣϯΞοϓ͕ଟ͍ͷͰ؅ཧ͕͠΍͍͢͜ͱ
    • ҆ఆʹՔಇ͍ͯ͠Δ͔ϞχλϦϯά͠΍͍͢͜ͱ
    B l o c k c h a i n N o d e

    View full-size slide

  16. ,VCFSOFUFTͷಛ௃
    • એݴతઃఆʢঢ়ଶΛίʔυͰઃఆʣ
    • *NNVUBCJMJUZʢมߋΛՃ͑ͳ͍৽نͰ࡞Γ௚͢ʣ
    • ࣗݾम෮ʢࢦఆͨ͠ঢ়ଶʹࣗಈͰम෮ʣ
    K u b e r n e t e s

    View full-size slide

  17. Bitcoin Bitcoin
    ཤྺ࢒ߴऔಘ༻
    ϊʔυӡ༻ͷΞʔΩςΫνϟ
    A r c h i t e c t u r e
    Engine
    Kubernetes
    *OHSFTT
    4FSWJDF 4FSWJDF
    Bitcoin Bitcoin
    5Yૹۚ༻
    ֎෦͔Βͷ௨৴ڐՄ
    *OHSFTTɿ-ϩʔυόϥϯαɺ4FSWJDFɿ-ϩʔυόϥϯα
    ֎͔ΒͷΞΫηεېࢭ
    ෳ਺ϊʔυ ෳ਺ϊʔυ
    1PE
    1PE

    View full-size slide

  18. ؀ڥ͋ͨΓ
    A r c h i t e c t u r e
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Engine
    Kubernetes
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    ཤྺ༻
    ૹۚ༻

    View full-size slide

  19. શ؀ڥ
    A r c h i t e c t u r e
    %FWFMPQɿ5FTUOFU
    4UBHJOHɿ-JWFOFU
    1SPEVDUJPO-JWFOFU
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Engine
    Kubernetes
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Engine
    Kubernetes
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum
    Engine
    Kubernetes
    Bitcoin Bitcoin
    Bitcoin Cash
    Bitcoin Cash
    Litecoin Litecoin
    XRP XRP
    Ethereum Ethereum
    Classic
    Ethereum
    Classic
    Ethereum

    View full-size slide

  20. Ծ૝௨՟ͷૹۚ

    View full-size slide

  21. ૹۚ
    S e n d T r a n s a c t i o n
    Engine
    Kubernetes
    Bitcoin Bitcoin
    *OHSFTT
    4FSWJDF
    Functions
    Cloud
    • ॺ໊ࡁΈ5YΛ$MPVE'VODUJPOTܦ༝ͰϊʔυʹૹΔ
    ୺຤ͷൿີ伴Ͱ5Yʹॺ໊
    ૹۚ༻

    View full-size slide

  22. औҾཤྺɺ࢒ߴ؅ཧ

    View full-size slide

  23. औҾཤྺɺ࢒ߴ؅ཧ
    T x H i s t o r y a n d B a l a n c e
    Engine
    Kubernetes
    4FSWJDF
    औҾཤྺɺ࢒ߴΛߋ৽
    Firestore
    Cloud
    ϦΞϧλΠϜʹऔಘ
    Pub/Sub
    Cloud
    Bitcoin Bitcoin
    ཤྺऔಘ༻
    • ϊʔυʹ͋ΔσʔλΛݕࡧ͠΍͍͢Α͏ʹ'JSFTUPSFʹ౤ೖ

    View full-size slide

  24. ΢ΥϨοτҎ֎ͷ෦෼ʹؔͯ͠
    P A R T 3

    View full-size slide

  25. ΢ΥϨοτҎ֎ͷػೳ
    • σϓϩΠʢ,VCFSOFUFTɺ$MPVE'JSFTUPSF'VODUJPOTʣ
    • ϞχλϦϯά
    • 'JSFTUPSFͷόοΫΞοϓͱ#JH2VFSZ࿈ܞ
    • Ϋϥογϡϩάʢ*TTVFԽ4MBDL௨஌ʣ
    • ϓογϡ௨஌
    • ڧ੍Ξοϓσʔτ
    • Ϣʔβߦಈϩάͷऔಘ
    F u n c t i o n s

    View full-size slide

  26. ,VCFSOFUFT΁ͷσϓϩΠ
    D e p l o y t o K u b e r n e t e s
    CircleCI
    Engine
    Container
    $MPVE

    #VJME
    Engine
    Kubernetes
    Stackdriver
    $POUBJOFS

    3FHJTUPSZ
    ᶄ#VJME5FTU ᶅ*NBHFͷొ࿥
    ᶆσϓϩΠ࣮ߦ ᶇ1PEͷ*NBHFͷߋ৽
    GitHub
    ᶃϚʔδͨ͠ΒΩοΫ

    View full-size slide

  27. $MPVE'JSFTUPSF'VODUJPOT΁ͷσϓϩΠ
    D e p l o y t o K u b e r n e t e s
    CircleCI
    ᶄ#VJME5FTU
    GitHub
    ᶃϚʔδͨ͠ΒΩοΫ
    Functions
    Cloud
    ᶅ'VODUJPOTͷσϓϩΠ
    Firestore
    Cloud
    ᶆSVMFTJOEFYͷσϓϩΠ

    View full-size slide

  28. ϞχλϦϯά͸4UBDLESJWFS
    M o n i t o r i n g

    View full-size slide

  29. ϞχλϦϯά
    M o n i t o r i n g
    ᶃࣗಈͰ4UBDLESJWFSʹूܭ͞ΕΔ
    Engine
    Kubernetes
    Stackdriver
    Functions
    Cloud
    Slack
    ᶄᮢ஋Λ௒͑ͨΒ௨஌
    4UBDLESJWFSͰϞχλϦϯά

    View full-size slide

  30. 'JSFTUPSFͷόοΫΞοϓͱ#JH2VFSZ࿈ܞ
    B a c k u p o f F i r e s t o r e & I n t e g r a t i o n t o B i g Q u e r y
    Scheduler
    Cloud
    Functions
    Cloud
    ᶃ#BDLVQ"1*Λ࣮ߦ
    Storage
    Cloud
    ᶄ#BDLVQϑΝΠϧ͕࡞੒͞ΕΔ
    BigQuery
    ᶅ#BDLVQϑΝΠϧͷ࡞੒͕׬ྃޙ

    ɹ#JH2VFSZ΁ϩʔυ͢Δ"1*Λ࣮ߦ

    View full-size slide

  31. Ϋϥογϡϩά
    C r a s h l o g
    ᶃΫϥογϡϩάΛ௨஌
    Functions
    Cloud
    ᶄΫϥογϡΛτϦΨʔʹىಈ
    ᶅ(JU)VCʹJTTVF࡞੒
    Crashlytics
    GitHub
    Slack
    ᶆ4MBDLʹ௨஌

    View full-size slide

  32. ϓογϡ௨஌
    P u s h N o t i f i c a t i o n
    Functions
    Cloud
    ᶃσʔλ͕ߋ৽͞ΕͨΒ'VODJUPOTΛىಈ ᶄ.FTTBHJOHʹ௨஌
    ᶅ.FTTBHJOH͔Β୺຤ʹ௨஌
    Firestore
    Cloud
    Messaging
    Cloud

    View full-size slide

  33. ڧ੍Ξοϓσʔτ
    V e r s i o n U p d a t e
    Config
    Remote
    ᶃىಈ࣌ʹ3FNPUF$POpH͔Β࠷௿όʔδϣϯΛऔಘ
    04ผʹ࠷௿όʔδϣϯΛઃఆ
    J04W
    "OESPJEW

    View full-size slide

  34. ϢʔβΞΫγϣϯͷऔಘ
    U s e r L o g g i n g
    ᶃΞΫγϣϯΛ&WFOUʹϓογϡ
    Analytics
    Functions
    Cloud
    ᶄ&WFOUΛτϦΨʔʹىಈ
    ֎෦ API
    ᶅ֎෦"1*Λ࣮ߦʢ޿ࠂͷଌఆʣ
    ΞΫγϣϯͷαϚϦΛݟΕΔ

    View full-size slide

  35. ·ͱΊ
    • ,Tͱ'JSFCBTFͰόοΫΤϯυӡ༻ΛָʹͰ͖Δ
    • $MPVE'VODUJPOT͸αʔϏε࿈ܞ͕ॆ࣮͍ͯͯ͠

    αʔόϨεͳͷͰϝϯςίετఈ
    • ,Tɺ'JSFCBTFͩͬͨΒগਓ਺ӡ༻΋࣮ݱͰ͖Δ
    S u m m a r y

    View full-size slide