open-next icon indicating copy to clipboard operation
open-next copied to clipboard

improve composable-cache performance

Open anonrig opened this issue 4 months ago • 2 comments

We saw that under high concurrency, Nth request was taking a lot more time than others. This was caused by the composable cache. Prior to this pull-request, cache was consuming all data stream (the response of the page), just to access it and later convert it to a stream (and discard the data cached). This created a lot of GC pressure and caused a lot of unnecessary memory usage.

Subset of https://github.com/opennextjs/opennextjs-aws/pull/1002

anonrig avatar Oct 10 '25 14:10 anonrig

🦋 Changeset detected

Latest commit: 0a946d302070856bb32cb97231217ef3677beca3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Oct 10 '25 14:10 changeset-bot[bot]

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@1004

commit: 0a946d3

pkg-pr-new[bot] avatar Oct 10 '25 14:10 pkg-pr-new[bot]