Hello everyone,
GitHub Repo: GitHub - awdr74100/nitro-worker
Production Worker: https://nitro-worker.a78945612385238.workers.dev
API: https://nitro-worker.a78945612385238.workers.dev/api/users
My question focuses on whether there is any difference in the way requests are handled internally between workers and pages? I built a full application with nuxt and deployed it to pages and the average response time was 150ms, while I built a backend api with nitro and deployed it to workers and the average response time was 900ms, I can’t understand why there is such a huge difference!
I have confirmed the existence of cloudflare datacenter in my country (Taiwan), shouldn’t the response time of the worker be about the same as pages? Because pages also use worker technology underneath, this issue is not related to any framework used for development, because I have done the same thing with hono, even without relying on a framework, and the response time is close to 1 second which makes it impossible for me to rely on a worker for any development.
Is there any part that I have misunderstood? Thanks for any help anyone can give!