The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: Add geo-aware routing strategy to experimental routing (#34476)
jose-ledesma641940e5464f
diff --git a/apps/docs/content/guides/platform/read-replicas.mdx b/apps/docs/content/guides/platform/read-replicas.mdxindex c2181b72fd3..21e1c8d6c73 100644--- a/apps/docs/content/guides/platform/read-replicas.mdx+++ b/apps/docs/content/guides/platform/read-replicas.mdx@@ -116,6 +116,16 @@ Due to the requirements of the Auth service, all Auth requests are handled by thThe experimental routing mode can be enabled by sending the header `sb-lb-routing-mode: alpha-all-services` along with requests. This gives the option to opt-in and try out the new routing, but still have the peace of mind that the original behavior is there should it be needed.+<Admonition type="note">+Starting on April 4th, 2025, we will be changing the routing behavior for eligible Data API requests:++- Old behavior: Round-Robin distribution among all databases (all read replicas + primary) of your project+- New behavior: Geo-aware routing, that directs requests to the closest available database++The new behavior delivers a better experience for your users by minimizing the latency to your project. You can take full advantage of this by placing Read Replicas close to your major customer bases.++</Admonition>+What follows is an example of using the `supabase-js` library to create a new client with the appropriate headers and make an Auth request to create a new user.```ts ./create-user.ts