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

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

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

KazukiHayase

March 16, 2023

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

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