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

NGINX Blogから考えるマイクロサービスのProxy設計

disc99
February 27, 2018

NGINX Blogから考えるマイクロサービスのProxy設計

disc99

February 27, 2018
Tweet

More Decks by disc99

Other Decks in Technology

Transcript

  1. "HFOEB w Α͋͘Δ1SPYZ w /(*/9CMPH w 1SPYZ.PEFM w 3PVUFS.FTI.PEFM w

    'BCSJD.PEFM w 4JEFDBSͱ4FSWJDF.FTI w ·ͱΊ
  2. "HFOEB w Α͋͘Δ1SPYZ w /(*/9CMPH w 1SPYZ.PEFM w 3PVUFS.FTI.PEFM w

    'BCSJD.PEFM w 4JEFDBSͱ4FSWJDF.FTI w ·ͱΊ
  3. .JDSPTFSWJDFT1SPYZ w ϚΠΫϩαʔϏεͷϓϩΩγ͸Ͳ͏͋Δ΂͖͔  w ϚΠΫϩαʔϏεͷ՝୊ w 4FSWJDFEJTDPWFSZ w "EBQUJWFSPVUJOHDMJFOUTJEFMPBECBMBODJOH

    w "VUPNBUJDSFUSJFT w $JSDVJUCSFBLFST w 5JNFPVUDPOUSPMT w CBDLQSFTTVSF w 3BUFMJNJUJOH w .FUSJDTTUBUTDPMMFDUJPO w 5SBDJOH w 4FSWJDFSFGBDUPSJOHSFRVFTUTIBEPXJOH w 5-4CFUXFFOTFSWJDFT w 'PSDFETFSWJDFJTPMBUJPOPVUMJFSEFUFDUJPO
  4. "HFOEB w Α͋͘Δ1SPYZ w /(*/9CMPH w 1SPYZ.PEFM w 3PVUFS.FTI.PEFM w

    'BCSJD.PEFM w 4JEFDBSͱ4FSWJDF.FTI w ·ͱΊ
  5. 1SPYZ.PEFM w ϚΠΫϩαʔϏεͷϑϩϯτʹϦόʔεϓϩΩγ Λ഑ஔ w ϦόʔεϓϩΩγػೳ w ϚΠΫϩαʔϏεಛ༗ͷػೳ w ΤϯυϙΠϯτͷ౷߹

    w "1*(BUFXBZ w αʔϏεσΟεΧόϦ w 3PVUFS.FTIɺ'BCSJD.PEFMͱൺ΂γϯϓϧ w ॳظͷϚΠΫϩαʔϏεɺϨΨγʔ͔ΒͷҠߦ w େن໛ͳϚΠΫϩαʔϏεʹ͸ෆ޲͖
  6. 3PVUFS.FTI.PEFM w ϦόʔεϓϩΩγͱϧʔλʔϝογϡϋϒʹ෼ׂ͠ ͯ഑ஔ w ϦόʔεϓϩΩγ w ҰൠతͳϦόʔεϓϩΩγػೳ w ϧʔλʔϝογϡϋϒ

    w ΤϯυϙΠϯτͷ౷߹ w αʔϏεσΟεΧόϦ w ϩʔυόϥϯγϯά w ಺෦Ωϟογϡ w αʔΩοτϒϨʔΧʔ w 1SPYZɺ'BCSJD.PEFMͷதؒతͳཱͪҐஔ
  7. "HFOEB w Α͋͘Δ1SPYZ w /(*/9CMPH w 1SPYZ.PEFM w 3PVUFS.FTI.PEFM w

    'BCSJD.PEFM w 4JEFDBSͱ4FSWJDF.FTI w ·ͱΊ
  8. 4JEFDBSͱ4FSWJDF.FTI w αΠυΧʔ w ֤αʔϏεͱηοτͰσϓϩΠ w αʔϏεͷ௨৴*0ΛϓϩΩγ w αʔϏεϝογϡ w

    㲈'BCSJD.PEFM w ݴޠ΍'8ͷҟͳΔϚΫϩαʔϏεͷ՝୊Λ αʔϏεͰ͸ͳ͘αΠυΧʔଆͰٵऩ w ίϯτϩʔϧϓϨΠϯʹΑͬͯαΠυΧʔΛ ؅ཧ
  9. 4FSWJDF.FTIͰղܾ w 4FSWJDFEJTDPWFSZ w "EBQUJWFSPVUJOHDMJFOUTJEF MPBECBMBODJOH w "VUPNBUJDSFUSJFT w $JSDVJUCSFBLFST

    w 5JNFPVUDPOUSPMT w CBDLQSFTTVSF ˞4FSWJDF.FTIͷػೳ͸࣮૷ʹΑΓҟͳΓ·͢ w 3BUFMJNJUJOH w .FUSJDTTUBUTDPMMFDUJPO w 5SBDJOH w 4FSWJDFSFGBDUPSJOHSFRVFTU TIBEPXJOH w 5-4CFUXFFOTFSWJDFT w 'PSDFETFSWJDFJTPMBUJPOPVUMJFS EFUFDUJPO
  10. *NQMFNFOUBUJPO -JOLFSE w #VPZBOU w 4DBMB w ೥݄$/$'ࢀՃ w ೥݄W

    w αʔϏεϝογϡ &OWPZ w -ZGU w $  w ೥݄W w ೥݄$/$'ࢀՃ w αΠυΧʔ *TUJP w (PPHMF *#. -ZGU w (P $  w ೥݄ެ։ w &OWPZ֦ுΛར༻ͨ͠αʔ Ϗεϝογϡ $POEVJU w #VPZBOU w 3VTU (P w ೥݄ެ։ w #VPZBOU੡ͷܰྔαʔ Ϗεϝογϡ OHJONFTI w /(*/9 w (P w ೥݄ެ։ w OHJOYΛ࢖༻ͨ͠αΠυ Χʔ w *TUJPͱͷ౷߹Λ૝ఆ
  11. "HFOEB w Α͋͘Δ1SPYZ w /(*/9CMPH w 1SPYZ.PEFM w 3PVUFS.FTI.PEFM w

    'BCSJD.PEFM w 4JEFDBSͱ4FSWJDF.FTI w ·ͱΊ
  12. ·ͱΊ w ϚΠΫϩαʔϏεͷ։ൃɺӡ༻͸େม w ࠜຊతʹෳࡶ w ΤίγεςϜ͸੔͖ͬͯͯ͸͍Δ͕૊Έ߹ΘͤΔඞཁ͕͋Δ w 1SPYZͷ࢖͍ํͷมԽ w

    ΑΓࡉ͔ͳαʔϏε୯ҐͰ1SPYZ w ݴޠ΍'8ʹґଘ͠ͳ͍ϚΠΫϩαʔϏεʹ࠷దԽ͞Εͨ1SPYZΛ׆༻͠ αʔϏε࣮૷ʹෆཁͳ՝୊͸औΓআ͘ w αʔϏεଆ͸ϏδωεϩδοΫͷ࣮ݱʹूத͢Δ