---
title: "Scaling Prisma applications with Neon read-only replicas"
description: "Neon read-only replicas are independent compute instances that read from the same shared storage as the read-write compute."
url: "https://swe.quest/articles/scaling-prisma-applications-with-neon-read-only-replicas-ac8944ec261965c9"
canonical: "https://neon.com/blog/read-replicas-prisma"
source: "Neon"
published: "2023-09-13"
difficulty: "medium"
kind: "How-to"
reading_minutes: 3
tags: ["postgres","replication","javascript","scalability"]
---

# Scaling Prisma applications with Neon read-only replicas

A post on [Neon](https://swe.quest/sources/neon.md), published 2023-09-13, 3 min read, How-to. Original: [https://neon.com/blog/read-replicas-prisma](https://neon.com/blog/read-replicas-prisma)

## Summary

Neon read-only replicas are independent compute instances that read from the same shared storage as the read-write compute. Because no data is copied via WAL replay as in traditional Postgres, they add no storage cost and are up to date at startup. Prisma apps can route reads to them with the @prisma/extension-read-replicas Client extension, which picks a random replica when several URLs are given. Writes and $transaction queries go to the primary, and $primary() forces a read against the primary when fresh data is required.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)

## Prerequisites

- Prisma ORM basics
- PostgreSQL ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

Neon, Prisma, @prisma/extension-read-replicas, PostgreSQL, neonctl

## Related posts

- [Rethinking read replicas for the lakebase architecture](https://swe.quest/articles/rethinking-read-replicas-for-the-lakebase-architecture-35eaea5162536008.md): Neon · 2026-11-25 · Medium · 15 min read · PostgreSQL, Replication, Storage engines, Cloud platforms, Cost optimization
  Lakebase Postgres implements read replicas as additional read-only computes attached to the same disaggregated storage as the primary, rather than as physical clones with their own volumes.
- [Introducing Read Replicas](https://swe.quest/articles/introducing-read-replicas-3301ec5316ccd33a.md): Supabase · 2023-12-15 · Medium · 6 min read · PostgreSQL, Replication, Scaling
  Supabase now supports Postgres read replicas in 12 regions, up to two per project, for offloading reads and analytics, serving data closer to users, and redundancy.
- [When to use Read Replicas vs. bigger compute](https://swe.quest/articles/when-to-use-read-replicas-vs-bigger-compute-061db4b923addf0b.md): Supabase · 2026-01-15 · Medium · 12 min read · PostgreSQL, Replication, Scaling, Capacity planning, Cost optimization
  Choosing between vertical scaling and Postgres Read Replicas comes down to diagnosing the bottleneck first, using pg\_stat\_statements, read/write ratio queries, CPU utilization and EXPLAIN ANALYZE.
- [A Deep Dive Into Neon’s Instant PITR](https://swe.quest/articles/a-deep-dive-into-neon-s-instant-pitr-6efa2ca3d55740a4.md): Neon · 2025-03-26 · Medium · 6 min read · PostgreSQL, Storage engines, Databases
  Neon's point-in-time restore is instant because its storage is copy-on-write: compute nodes stream WAL to Paxos-replicated safekeepers, and pageservers reconstruct any page at any past LSN from image and delta layers kept in object storage.
- [Architecture decisions in Neon](https://swe.quest/articles/architecture-decisions-in-neon-01182afd96537274.md): Neon · 2022-07-08 · Medium · 9 min read · PostgreSQL, Storage engines, System design, Serverless, Replication
  Neon built serverless Postgres by separating storage from compute without forking Postgres.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
