「ともにつくる」デモのはなし - JX通信社のばあい #devsumi / Developers Summit 2020 Party Session LT

「ともにつくる」デモのはなし - JX通信社のばあい #devsumi / Developers Summit 2020 Party Session LT

Developers Summit 2020「ともにつくる」

懇親会LT

https://event.shoeisha.jp/devsumi/20200213

#devsumi #JXPress #Python #FastAPI #GCP

2c0947c6a28e7f771ebd9859ecf54e5c?s=128

Shinichi Nakagawa

February 14, 2020
Tweet

Transcript

  1. ʮͱ΋ʹͭ͘ΔʯσϞͷ͸ͳ͠ Shinichi Nakagawa @shinyorkeʢJX Press Corporation Senior Engineerʣ Developers Summit2020

    2/14 Party Session
  2. ͦͷલʹ

  3. ΋͏Ұ౓סഋ͓͖ͯ͠·͠ΐ͏͔ ࠓ೔͸TGIFͰ͢Αʂ

  4. סഋ

  5. ʮͱ΋ʹͭ͘ΔʯσϞͷ͸ͳ͠ Shinichi Nakagawa @shinyorkeʢJX Press Corporation Senior Engineerʣ Developers Summit2020

    2/14 Party Session
  6. Who am I ?ʢ͓લ୭Αʣ • Shinichi Nakagawaʢத઒ɹ৳Ұʣ • JX Press

    Corporation/Senior Engineer • Python΋͘΋ࣗ͘शࣨΦʔΨφΠβʔ https://jisyupy.connpass.com/ • SNS౳͸@shinyorkeʢ͠ΜΑʔ͘ʣͱ͍͏໊લͰੜଉ • #Python #DataScience #Baseball⚾ #SABRmetrics #Agile
  7. JX௨৴ࣾ & ࢲͷ࢓ࣄ • ςΫϊϩδʔͰʮࠓى͖͍ͯΔ͜ͱʯΛ໌Β͔ʹ͢Δใಓػؔ • BtoB SaaSͷʮFASTALERTʯ, ੈ࿦ௐࠪetc… •

    BtoCͷχϡʔε଎ใΞϓϦʮNewsDigestʯ ʮGoogle Play ϕετΦϒ2019ʯͰ෦໳৆Λड৆ • ࢲ͸ΤϯδχΞͱͯ͠σʔλج൫ͱ͔࠾༻ͱ͔΍ͬͯ·͢
  8. ࠓ೔͸͜Μͳ࿩Λ͠·ͨ͠ʢ14-E-6ʣ དྷ͍͍ͯͨͩͨօ͞·͋Γ͕ͱ͏͍͟͝·ͨ͠, ͦ͏Ͱͳ͍ํ΋ͥͻεϥΠυͱ͔ΈͯͶ.

  9. ຊฤͷൃදʹ͓͍ͯ ʮͱ΋ʹͭ͘Δʯ ͕Ұ౓΋Ͱͯ͜ͳ͔ͬͨͷͰ͕͢ ͪΌΜͱ΍ͬͨͷͰ൸࿐͍ͤͯͩ͘͞͞

  10. ్தͰԿ౓͔ొ৔ͨͪ͜͠ΒͷσϞΞϓϦ ࠓճͷొஃʹ߹Θͤͯ…ͱ͍͍͍ͨͱ͜ΖͰ͕͢ ผͷ໨త΋͋ͬͯ೥຤͔Βͣͬͱ։ൃͯ͠·ͨ͠.

  11. ׂͱ͔ͬ͠Γͨ͠ߏ੒ͷσϞͩͬͨ༁Ͱ͕͢ʂʁ ʲਤʳσϒαϛ༻σϞΞϓϦͷߏ੒. جຊతʹMac্ͷDockerͰಈ͍͍ͯ·͢.

  12. None
  13. ʮͱ΋ʹͭ͘Δʯʹॿ͚ΒΕͨτί • αʔόʔαΠυʢWeb APIʣ • ಛ௃ྔΤϯδχΞϦϯά

  14. ※͜ͷઌ͸͢΂ͯPythonͷ࿩Ͱ͢

  15. βοι΢͔Βੜ͑Δٕज़બఆ • ౰ॳ͸responderΛ૝ఆ͍ͯͨ͠. ʢͪͳΈʹDjango/Flask͸࠷ॳ͔Β૝ఆ֎ʣ • ͍ͬͯ͏࿩Λಉ྅ʹβοι΢ʢࡶͳ૬ஊʣ ͨ͠ͱ͜Ζ, ʮ΋ͬͱ͍͍΍ͭ͋Δ΍Ͱʂʯ • ͦ͜ͰקΊΒΕͨͷ͕ʮFastAPIʯ,

    σϞ΋༧ఆ௨Γ׬੒ʂ
  16. ͳͥFastAPI͕ΦεεϝͰग़͖͔ͯͨʁ • طʹԿਓ͔͕։ൃܦݧ͋Γ΋͘͠͸΍ͬͯΔ࠷தͩͬͨ • ͱ͍͏ࣄ৘Ͱϊ΢ϋ΢΍ܦݧ͕ੵ·Ε͓ͯΓ, shinyorkeͷཁ݅ɾ΍Γ͍ͨ͜ͱʹඞཁͳ৘ใ΋ฉ͚ͨ • ͍ͭͰʹϒϩά΋ॻ͍ͯେ౰ͨΓʢײँʣ https://shinyorke.hatenablog.com/entry/fastapi

  17. ಛ௃ྔΤϯδχΞϦϯά • ϝδϟʔϦʔΨʔ໿20,000ਓͷσʔλʹରͯ͠ ಛ௃ྔʹج͍ͮͨείΞϦϯάΛ͢Δඞཁ͕ • ϩʔΧϧ؀ڥʢMacʣͰ΍ͬͯͨΒऴΘΒΜ… ͪͳΈʹίʔυ͸͢΂ͯPython • GCPͰ͍͍͡ΌΜʢ͍͍͡ΌΜʣ

  18. σʔλج൫ߏஙͷϊ΢ϋ΢ۦ࢖Ͱ΍Γ͖Γ • JX௨৴ࣾͷσʔλج൫Λߏங͢ΔϛογϣϯͰ ࢄʑGCPͷαʔϏεΛ࢖ͬͯͨ͜ͱΛࢥ͍ग़͢ • Docker Image࡞ΕͨΒ͍͚Δ͡ΌΜʂ …ͬͯ͜ͱͰGCEͱGCSͰ͢΂ͯΛย෇͚ͨ ϗϯτ͸Cloud Runͷ͸͕ͣ๻ͷཧղ(ry

    • ։ൃ߹॓ͰGCPΛΨποͱ΍ͬͯͨϝϯόʔͷ஌ݟʹٹΘΕͨΓͱ͔
  19. ʮͱ΋ʹͭ͘Δʯ͕΍Γ΍͍͢؀ڥ • JX௨৴ࣾ͸৭ΜͳྖҬͷ໘ന͍ΤϯδχΞ͕ू·͓ͬͯΓ, ϑϩϯτɾαʔόʔɾػցֶशʹΞϓϦͱฉ͚͹͍͍ͩͨ෼͔Δ • ڧ͍ਓͩͱ, ݱ৬ͷCTOʢͱࢲʣΛೖΕͯCTOܦݧऀ͕4໊͍Δ ͦͯ͠શମతʹ༏͍͠ਓ͕ͨ͘͞Μ͍ΔʢΤϯδχΞʹݶΒͣʣ • Slackͷ

    #dev νϟϯωϧʹ౤͛ΔͱάάΔΑΓ΋଎͘Ϩε͕ ͜Ε͕Θͨͨͪ͠ͷʮͱ΋ʹͭ͘ΔʯͰ͢ʂ
  20. ʮͱ΋ʹͭ͘Δʯ ݴޠ΋Ϋϥ΢υ΋େࣄ͚ͩͲ ΍ͬͺΓνʔϜ΍Ͱʂ

  21. ήʔϜηοτ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ Shinichi Nakagawa(Twitter/Facebook/etc… @shinyorke)