Skip to content

Conversation

pan93412
Copy link
Member

No description provided.

@pan93412 pan93412 self-assigned this Sep 24, 2025
Copy link

linear bot commented Sep 24, 2025

@pan93412 pan93412 changed the title feat(graphql): implement GraphQL APQ feat(graphql): implement GraphQL APQ based on Redis Sep 24, 2025
@pan93412 pan93412 requested a review from Copilot September 24, 2025 16:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements Apollo Client's Automatic Persisted Queries (APQ) functionality using Redis as the backend cache, replacing the previous in-memory LRU cache implementation.

  • Introduces a new Redis-based APQ cache implementation in the internal/graphql/apq package
  • Updates the GraphQL handler to use the Redis cache instead of an in-memory LRU cache
  • Integrates the new APQ cache into the dependency injection system

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
internal/graphql/apq/apq.go New Redis-based APQ cache implementation with Get/Add methods
cmd/backend/server.go Adds ApqCache to the dependency injection providers
cmd/backend/dependencies.go Creates ApqCache provider and updates GqlgenHandler to use Redis cache

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 force-pushed the pan93412/dbp-62-implement-apq-of-graphql branch from 59ff323 to 9d975eb Compare September 24, 2025 16:24
@pan93412 pan93412 requested a review from Copilot September 24, 2025 16:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit 29c12f7 into main Sep 24, 2025
1 check passed
@pan93412 pan93412 deleted the pan93412/dbp-62-implement-apq-of-graphql branch September 24, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant