Use the Private Network

Use the private network when your app queries a database or background worker. It's faster, more secure, and saves you egress costs.

This app is a full-stack TanStack Start project with two endpoints querying the same Postgres database running a SELECT 1 query 10 times. The difference is one uses the private network and the other uses the public URL over the open internet. Both the app and database run in the same US-East (Virginia, USA) region on Railway