lbguilherme
CDCloudflare Developers
•Created by lbguilherme on 5/20/2024 in #workers-help
Does Smart Placement support Hyperdrive? I'm using Next.js with Postgres
I successfuly deployed a page using Next.js with next-on-pages connected to a Postgres database using Drizzle/Postgres.js and Hyperdrive. Everything works, except that the latency is still very high. I have enabled Smart Placement but it still takes >700ms to respond on a route with just one simple database query. My current deployment on Kubernetes takes ~150ms to do the same. (I'm measuring round trip to my pc). The "cf-placement" header shows that Smart Placement didn't trigger. Does it work with Hyperdrive? Is there anything I can do to improve this latency?
7 replies