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

キャッシュによる状態管理のアーキテクチャ / Cache-based state manage...

rockname
September 12, 2022

キャッシュによる状態管理のアーキテクチャ / Cache-based state management architecture

rockname

September 12, 2022
Tweet

More Decks by rockname

Other Decks in Programming

Transcript

  1.  ঢ়ଶ؅ཧʹ͓͚ΔΞʔΩςΫνϟͷඞཁੑ w σʔλͷෆ੔߹Λ๷͙ͨΊʹ͸ɺಉظΛඞཁͱ͢Δঢ়ଶΛ֤ը໘Ͱݸผʹ؅ཧ͢ΔͷͰ͸ͳ͘ɺ(MPCBM4UBUFͱͯ͠ٵ্͍֤͛ͯ ը໘΁఻೻ͤ͞ΔΑ͏ʹ͢Δͷ͕ྑ͍ղܾࡦͰ͢ w ͜ͷΑ͏ʹɺ৴པͰ͖Δ།Ұͷ৘ใݯ 4JOHMF4PVSDFPG5SVUI Λங͘͜ͱ͕੔߹ੑͷऔΕͨঢ়ଶΛҡ্͍࣋ͯ͘͠Ͱ͸ॏཁͰ͢ w

    ͔͠͠ɺྫ͑͹͜ͷ(MPCBM4UBUFΛඞཁͱ͢Δը໘͕͔ͳΓωετͷਂ͍7JFX֊૚ʹҐஔ͍ͯͨ͠৔߹ɺ਌͔Βࢠ΁όέπϦ ϨʔͰ(MPCBM4UBUFΛ఻೻͍ͤͯ͘͞ඞཁ͕͋Γɺίʔυ͕ෳࡶԽ͍͖ͯ͠·͢ w ͜ͷΑ͏ͳཧ༝͔Βɺঢ়ଶ؅ཧʹ͓͍ͯద੾ͳΞʔΩςΫνϟͷબఆ͕ඞཁͱͳ͖ͬͯ·͢ 4JOHMF4PVSDFPG5SVUI
  2.  4FSWFS4UBUFPS$MJFOU4UBUF w ΠϯϝϞϦͰ΋Γ΋Γঢ়ଶ͕มԽ͢ΔΑ͏ͳ$MJFOU4UBUFΛ؅ཧ͢Δඞཁ͕ ͋ΔͳΒ͹ɺ3FEVY͔Β೿ੜͨ͠5IF$PNQPTBCMF"SDIJUFDUVSF 5$" ͷ Α͏ͳΞʔΩςΫνϟͷ࠾༻Λݕ౼͠·͠ΐ͏ w 5$"͸1PJOU'SFFʹΑͬͯ։ൃ͞ΕͨΞʔΩςΫνϟͰɺ࣮ࡍʹ1PJOU

    'SFF͸5$"Λ༻͍ͯJTPXPSETͱ͍͏044ͷJ04ΞϓϦΛ։ൃ͍ͯ͠·͢ w JTPXPSET͸ɺΩϡʔϒʹݱΕΔ୯ޠΛݟ͚ͭͯফ͍ͯ͘͠ήʔϜΞϓϦ ͰɺසൟʹมԽ͢Δେ͖ͳ$MJFOU4UBUFΛѻ͏ΞϓϦͱͳ͍ͬͯ·͢
  3.  ࢀߟจݙ w એݴత6*ͷঢ়ଶ؅ཧͱΞʔΩςΫνϟ4XJGU6*ͱ(SBQI2-ʹΑΔ࣮ફ w IUUQTTQFBLFSEFDLDPNTPOBUBSETXJGUVJHSBQIRM w 5IFOFXXBWFPG3FBDUTUBUFNBOBHFNFOU w IUUQTGSPOUFOENBTUFSZDPNQPTUTUIFOFXXBWFPGSFBDUTUBUFNBOBHFNFOU

    w $PEFMBCϦϙδτϦύλʔϯ w IUUQTEFWFMPQFSBOESPJEDPNDPEFMBCTCBTJDBOESPJELPUMJOUSBJOJOHSFQPTJUPSZQBUUFSO w (SBQI2-$PODFQUT7JTVBMJ[FE w IUUQTXXXBQPMMPHSBQIRMDPNCMPHHSBQIRMCBTJDTUIFDPODFQUTPGHSBQIRM w %FNZTUJGZJOH$BDIF/PSNBMJ[BUJPO w IUUQTXXXBQPMMPHSBQIRMDPNCMPHBQPMMPDMJFOUDBDIJOHEFNZTUJGZJOHDBDIFOPSNBMJ[BUJPO w ͋ͳͨͷϓϩμΫτʹ"QPMMP$MJFOU͸ඞཁͳ͍͔΋͠Εͳ͍ w IUUQTVTFS fi STUJLZVDPKQFOUSZ w είʔϓͱϥΠϑλΠϜͰߟ͑Δ3FBDU4UBUF࠶ߟ w IUUQT[FOOEFWBLGNBSUJDMFTSFBDUTUBUFTDPQF