router icon indicating copy to clipboard operation
router copied to clipboard

New response caching implementation

Open bnjjj opened this issue 5 months ago • 2 comments

This PR contains new response caching implementation based on directives.

TODO:

  • [x] Check naming (directive, debugger extension name, context keys)
  • [x] Do we need cascade ?
  • [x] Refactor tests (use new subgraph mocks and avoid snapshots as much as possible)
  • [x] Rebase with dev
  • [x] Get rid of pg_cron ?
  • [x] Add postgres in docker-compose

Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • [ ] Changes are compatible[^1]
  • [ ] Documentation[^2] completed
  • [ ] Performance impact assessed and acceptable
  • [ ] Metrics and logs are added[^3] and documented
  • Tests added and passing[^4]
    • [ ] Unit Tests
    • [ ] Integration Tests
    • [ ] Manual Tests

Exceptions

Note any exceptions here

Notes

[^1]: It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]: Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]: A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices. [^4]: Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

bnjjj avatar Jun 16 '25 14:06 bnjjj

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

1 new, 9 changed, 0 removed
+ (developer-tools)/kotlin/v5/migration/5.0.mdx
* (developer-tools)/kotlin/v5/index.mdx
* (developer-tools)/kotlin/v5/advanced/apollo-ast.mdx
* (developer-tools)/kotlin/v5/advanced/compiler-plugins.mdx
* (developer-tools)/kotlin/v5/advanced/no-runtime.mdx
* (developer-tools)/kotlin/v5/caching/http-cache.mdx
* (developer-tools)/kotlin/v5/caching/normalized-cache.mdx
* (developer-tools)/kotlin/v5/testing/apollo-debug-server.mdx
* (developer-tools)/kotlin/v5/testing/mocking-graphql-responses.mdx
* graphos/routing/v1/operations/subscriptions/index.mdx

Build ID: be7bf0922efa1c1781f9ff85

URL: https://www.apollographql.com/docs/deploy-preview/be7bf0922efa1c1781f9ff85

apollo-librarian[bot] avatar Jun 16 '25 14:06 apollo-librarian[bot]

@bnjjj, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

github-actions[bot] avatar Jun 16 '25 15:06 github-actions[bot]