Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Improve the adapter's request handling performance #183

Open
2 tasks done
dario-piotrowicz opened this issue Dec 16, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@dario-piotrowicz
Copy link
Contributor

dario-piotrowicz commented Dec 16, 2024

Is your feature request related to a problem?

I have created a very basic hello-world Next.js application: https://github.com/dario-piotrowicz/next-14-hello-world-app

And deployed it on Cloudflare using:

By running some benchmarking I saw the request handling on open-next is longer than the next-on-pages one (the measures are in milliseconds):
chart

Ideally we should close the gap and even make open-next faster then next-on-pages

Describe the solution you'd like

The only thing that comes to mind is trying to add lazy loading to the built application and hoping that it can help with performance.

Describe alternatives you've considered

We could probably also analyze the code and eliminate code that doesn't need to be there if any.

@opennextjs/cloudflare version

0.3.3

Additional context

One thing that makes open-next slower is the fact that it can incur assets worker cold starts, something that should ideally get better as usage of workers assets increases over time.

Before submitting

  • I have checked that there isn't already a similar feature request
  • This is a single feature (not multiple features in one request)
@dario-piotrowicz dario-piotrowicz added enhancement New feature or request triage labels Dec 16, 2024
@vicb vicb moved this to In Progress in opennext-cloudflare - aws "merge" Dec 16, 2024
@vicb vicb added perf and removed enhancement New feature or request triage labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants