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

BFFにかける期待

 BFFにかける期待

Shimpei Takamatsu

December 02, 2016
Tweet

More Decks by Shimpei Takamatsu

Other Decks in Technology

Transcript

  1.  ▪ ߴদ ਅฏ (@shimpeiws) ▪ WebΤϯδχΞ @ ΞΧπΩ LXࣄۀ෦

    ɹɾRailsͱJavaScriptΛ൒ʑ͘Β͍ॻ͍͍ͯΔ ▪ LX(ϥΠϒΤΫεϖϦΤϯε)ࣄۀ෦ ɹɾཱྀφΧɾΞΫςΟϏςΟɺཱྀߦɺΠϯό΢ϯυͳͲ ɹɾϦΞϧͳମݧͷػձΛఏڙ͢ΔαʔϏε౳Λ޿ؚ͘Ή ࢲ͸୭
  2. " " " " " OSSͱࢿྉʹѹ౗తײँ " " " "

    " ઌਓͷ஌ܙ  recruit-tech/redux-async-loader SSR࣌ͷඇಉظσʔλಡΈࠐΈʹར༻ React with ReduxʹΑΔ େن໛঎༻αʔϏεͷ։ൃ https://speakerdeck.com/yoshidan/nodefest2016
  3.  ▪# # # ਏ͔ͬͨͱ͜Ζ# # # ɹɾσʔλͷऔಘ ※ ಛʹ͜͜ͷ࿩Λ͍ͨ͠ͷͰ͜ͷޙ!!!

    ɹɾViewͱͷϚοϐϯά ɾσʔλͷಛੑ্ϓϨθϯςʔγϣϯϩδοΫ͕๲ΒΈ͕ͪ ɾXXXUtilɺXXXHelperɺXXXViewModel͕ཚཱͨ͠… ɹɾReact in productionϞʔυ ɹ ɹɾdevelopͩͱwarningʹͳΔΑ͏ͳ΋ͷ͕productionͰக໋ইʹͳΔ ɹ ɹɾe.g. λάͷωετ(pλάͷதʹdivͱ͔)ɺdefaultValueʹundefined ▪$ $ $ ਏ͘ͳ͔ͬͨͱ͜Ζ$ $ $ ɹɾSSR͢Δ͜ͱࣗମ ɹ ɹɾϥΠϒϥϦ΋ἧ͖ͬͯͯɺͦΜͳʹෑډ͕ߴ͘ͳ͍ ɹɾϢʔβΠϕϯτىҼͷΞΫγϣϯͷෳࡶ͞ ɹ ɹɾ͜Ε͸ReactͷԸܙͰͦΜͳʹ೉͘͠ͳ͍ɺstateʹूத͢Ε͹͍͍ Կ͕ਏ͔͔ͬͨ Կ͕ਏ͘ͳ͔͔ͬͨ
  4.  ▪ͳΜͰ͜͏ͳͬͨ… ɹɾ% % % ͢Έ·ͤΜ…% % % ▪API͸RESTʹอ͔ͪͨͬͨ ɹɾը໘ʹ΂ͬͨΓدΓఴͬͨAPI͸࠶ར༻Ͱ͖ͳͯ͘ɺվमͭΒ͍

    ɹɾnestedͳJSON͸ۃྗ΍ΊͯɺϦιʔεຖʹϦΫΤετ͠ͳ͓ͦ͏ ɹɾ·͋ɺΫϥΠΞϯτͰؤுΕ͹͍͍ͬ͠ΐ… ▪͜ΕDBपΓͰߟ͑ͯͨ͜ͱ͕Ұ૚खલʹདྷͯͳ͍͔? ɹɾϧʔϓͰΞΫηε͢ΔͱAPI૚ͰN+1͢Δ ɹɾAPIϨεϙϯεͷΩʔ࡟আͱ໋͔औΓ (DBͷSchemaมߋͱಉҙ) ɹɾ݁ՌRESTकΓ͖Εͣɺnestedͳ΍ͭฦ͢… ɹɾϑϩϯτΤϯυʹෳࡶ͞Λԡ͠෇͚͗ͨ͢Μͩͳ͊… Կ͕ਏ͔͔ͬͨ Կ͕ਏ͘ͳ͔͔ͬͨ