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

GraphQLにおけるクライアントキャッシュ戦略

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

 GraphQLにおけるクライアントキャッシュ戦略

KazukiHayase

March 16, 2023

Transcript

41 slides
  1. キャッシュの仕組み • いくつかのGraphQL Clientにはキャッシュ機構が備わっている ◦ Apollo Client, Relay, urql •

    キャッシュを活用することで無駄なリクエストが減る • そのためにはキャッシュ機構の正しい理解が必要
  2. 全体像 PageComponentA PageComponentA ContentQuery PageComponentA MasterQuery GeneralMasterQuery PageComponentB PageComponentB ContentQuery

    PageComponentB MasterQuery ページコンポーネントごとに コンテンツ・マスタデータのQueryを定義 汎用マスタデータのQueryは コンポーネントの外で定義

More Decks by KazukiHayase

Other Decks in Technology