Is Better Auth a good choice on Cloudflare with D1?
I have a SvelteKit site hosted in Cloudflare's serverless Workers infrastructure. The database is Cloudflare D1. Unfortunately each DB query, or batch of queries, requires a network roundtrip which averages 100ms and can reach 300ms. So I really need to minimise the number of roundtrips, by batching queries.
Is Better Auth a good choice in this environment? Does it allow typical flows (accessing a protected page, logging in, creating an account) to be completed in 1-2 roundtrips to the database? To what extent can I control this? Thanks! Better Auth seems brilliant, if I can resolve this q.
1 Reply
(I did look into D1 read replication, but I don't have enough traffic from remote locations to keep the replicas "hot", so it made database latency worse for Australian users)