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

先取りKtor2.0

doyaaaaaken
February 06, 2022

 先取りKtor2.0

ServerSide Kotlin Meetup vol.1にて発表

doyaaaaaken

February 06, 2022
Tweet

More Decks by doyaaaaaken

Other Decks in Programming

Transcript

  1. !4FSWFS4JEF,PUMJO.FFUVQWPM
    খࢁ݈ଠ ,PZBNB,FOUB
    !EPZBBBBBLFO
    ઌऔΓ,UPS

    View full-size slide

  2. ࣗݾ঺հ
    w ࢓ࣄ
    w גࣜձࣾTNBSUSPVOE$50૑ۀϝϯόʔ
    w αʔόαΠυ,PUMJOʢ,UPSʣɾ7VF+4Λࠓ͸Α͘ॻ͍͍ͯ·͢
    w ,PUMJOྺ͸೥͘Β͍
    w 044׆ಈ
    w LPUMJODTWͷ࡞ऀʢ⭐PWFSʣ
    w ,UPSɾ&YQPTFEɾLPUFTU౳΁ͷίϯτϦϏϡʔτ
    w ,UPSυΩϡϝϯτͷ೔ຊޠ຋༁΋ੲͯ͠·ͨ͠ʢ%FQSFDBUFEͰ͕͢ʣ

    @doyaaaaaken

    View full-size slide

  3. ,UPSͱ͸
    +FUSBJOT͕։ൃͨ͠8FCϑϨʔϜϫʔΫ
    w όʔδϣϯCFUBʢ࣌఺ʣ
    w ,PUMJO.VMUJQMBUGPSNରԠ
    w ϚΠΫϩϑϨʔϜϫʔΫ
    w ϑϧελοΫϑϨʔϜϫʔΫͰ͋Δ4QSJOH#PPUͱ͸ର৅త
    w /PEFKTͷ&YQSFTTKTʹ͔ͳΓࣅͯΔ

    View full-size slide

  4. ͜Μͳײ͡ͷίʔυͰ͢
    γϯϓϧʹϧʔςΟϯάఆ͕ٛॻ͚Δ

    View full-size slide

  5. ࠓ೔ͷຊ୊
    ΋͏͙͢W͕ϦϦʔε͞ΕΔͷͰΞοϓσʔτʹ͍ͭͯڞ༗
    w ৘ใιʔε
    w +FU#SBJOTެࣜͷ:PV5VCFಈը

    IUUQTXXXZPVUVCFDPNXBUDI WNZF/KWY746BC@DIBOOFM,PUMJOCZ+FU#SBJOT
    w ؆ུʹ·ͱ·ͬͨϒϩά

    IUUQTNFEJVNDPNCBDLZBSEQSPHSBNNFSTXIBUTOFXJOLUPSCBECD

    View full-size slide

  6. WͷҐஔ͚ͮ
    Wʹ͓͚Δཧ૝తͰͳ͍ܾఆΛഁյతมߋΛ൐͍ͭͭमਖ਼
    w ݁࿦ɺ௒େ͖ͳΞοϓσʔτ͸ແ͍
    w ʰকདྷͷͨΊͷجૅݻΊʱతͳҐஔ͚ͮͷϦϦʔε
    w Ϟδϡʔϧ΍ύοέʔδߏ଄ΛϦϑΝΫλ
    w υΩϡϝϯτͷ੔උ
    w 1MVHJOػೳʢچ'FBUVSFػೳʣʹΑΓ֦ுੑΛߴΊΔ
    w .VMUJQMBUGPSNରԠͷൣғ֦େ

    View full-size slide

  7. ྫɿύοέʔδ໊ͷมߋ
    lJPLUPSTFSWFSz lJPLUPSDMJFOUz zڞ༗ͷ΋ͷzʹେ͖͘෼͔ΕΔ

    ˞ҠߦΛࣗಈͰߦ͏πʔϧ͸*OUFMMJ+͔Β΋ఏڙ͞ΕΔΑ͏Ͱ͢

    View full-size slide

  8. େ͖ͳΞοϓσʔτ
    Ϣʔβʹͱͬͯͷେ͖ͳΞοϓσʔτ͸ҎԼ͙Β͍
    z'FBUVSFzػೳ͕z1MVHJOzػೳʹݺͼ໊͕มΘͬͨ
    w ΠϯλʔϑΣʔε͕ΊͬͪΌγϯϓϧʹ
    w ϢʔβଆͰ֦ு͠΍͘͢ͳͬͨ
    ,UPS4FSWFS͕,PUMJO/BUJWFʹରԠ
    w ͜ΕʹΑΓ(SBBM7.্ͰىಈՄೳʹ
    w ͳ͓$MJFOUͷ΄͏͸ݩ͔Β/BUJWF +BWB4DSJQUʹରԠ͍ͯ͠Δ

    View full-size slide

  9. 1MVHJOػೳʹ͍ͭͯ

    ,UPSʹ͓͍ͯ͸3PVUJOHؚΊ͢΂ͯΛ1MVHJOͱͯ͠ఏڙ͢Δ

    l*O,UPS FWFSZUIJOHJTBQMVHJOz
    CZ)BEJ)BSJSJ

    View full-size slide

  10. 1MVHJOػೳʹ͍ͭͯ

    1MVHJO͸/FUXPSL*0ʹ͓͚Δ*OUFSDFQUPSͱͯ͠ಇ͘

    View full-size slide

  11. 1MVHJOػೳʹ͍ͭͯ

    WͰ͸1MVHJOʢ'FBUVSFʣػೳ͸ҎԼͷ"1*

    View full-size slide

  12. 1MVHJOػೳʹ͍ͭͯ

    WͰ͸1MVHJO͸γϯϓϧͳ"1*ʹͳΓϢʔβ͕֦ு͠΍͘͢ͳͬͨ

    ˞ΞϓϦέʔγϣϯશମʹ࡞༻͢ΔlDSFBUF"QQMJDBUJPO1MVHJO
    zϝιουͷଞɺ

    ಛఆͷϧʔτʹରͯ͠ͷΈ࡞༻͢ΔzDSFBUF3PVUF4DPQF1MVHJO
    zϝιου΋ଘࡏ͢Δ

    View full-size slide

  13. 1MVHJOػೳʹ͍ͭͯ

    SEQBSUZʢ։ൃऀࣗ࡞ʣ1MVHJOΛར༻Ͱ͖ΔϚʔέοτϓϨʔεͷ

    ߏ૝͕͋Δ

    IUUQTTUBSULUPSJP

    View full-size slide

  14. ͦͷଞࡉ͔ͳΞοϓσʔτ܈
    w 4FSWFS
    w 3BOEPN1PSUɿϥϯμϜͳϙʔτ൪߸Ͱىಈ
    w 9.-γϦΞϥΠζͷαϙʔτ
    w ʜFUD
    w $MJFOU
    w ϦτϥΠͷαϙʔτ
    w .FUSJDTϓϥάΠϯ
    w 9.-γϦΞϥΠζͷαϙʔτ
    w ʜFUD

    View full-size slide

  15. TNBSUSPVOEͱ͸
    ελʔτΞοϓ ͕ࣾొ࿥͢ΔϓϥοτϑΥʔϜܕ4BB4Ͱ͢
    w اۀӡӦ͢Δ্Ͱͷඞਢͷࣄ຿࡞ۀΛαϙʔτʢגओ໊฽؅ཧɾגओ૯ձɾܦӦ؅ཧʜFUDʣ
    w ؆୯ʹσʔλ࡞੒ɾ؅ཧ͠ɺגओͱڞ༗Ͱ͖Δ*3ϓϥοτϑΥʔϜ

    ˞·ͣ͸ΧδϡΞϧ໘ஊ͔Βʂ5XJUUFS%.ɾ8BOUFEMZͳͲ͔Β͓ؾܰʹ͝࿈བྷ͍ͩ͘͞ɻ

    View full-size slide


  16. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠
    @doyaaaaaken

    View full-size slide