# Design

> Design decisions behind pgredis.

---

LLMS index: [llms.txt](/llms.txt)

---

These notes record the core architectural choices and scope boundaries of pgredis:

- [One semantic core](/docs/redis/design/semantic-core/) — why all Redis command semantics execute inside the `pg_redis` PostgreSQL 18 C extension while the Go gateway handles protocol and session transport.
- [Persistence and replication scope](/docs/redis/design/persistence-scope/) — why PostgreSQL WAL, backup and replication replace Redis AOF, RDB and `REPLICAOF`, and how the 55 upstream test cases that depend on Redis-native persistence or replication are handled.
- [MIGRATE connections](/docs/redis/design/migrate/) — how `MIGRATE` resolves target hosts via libc `getaddrinfo`, classifies connection versus write-stage errors, and interacts with database locks and SQL rollback.
- [MVP goal (v0.1.0)](/docs/redis/design/mvp-goal/) — the current goal approved on 2026-11-08: completion condition, scope, release list and deferred work; it replaces the P0–P6 completion condition.
- [Status review, 2026-11-08](/docs/redis/design/review-2026-11-08/) — why the work did not reach a release before 2026-11-08, the decisions taken, and the `v0.1.0-rc1` results.

For the results on the current candidate, see [Status](/docs/redis/status/).

---

Section pages:

- [One semantic core](/docs/redis/design/semantic-core/): Why RESP and SQL share one C implementation of Redis semantics.
- [Persistence and replication scope](/docs/redis/design/persistence-scope/): Why PostgreSQL WAL replaces AOF, RDB and Redis replication.
- [MIGRATE connections](/docs/redis/design/migrate/): How MIGRATE reaches another server, and its current limits.
- [Status review, 2026-11-08](/docs/redis/design/review-2026-11-08/): Why pgredis did not reach a release before 2026-11-08, what was decided, and what the MVP candidate measured.
- [MVP goal (v0.1.0)](/docs/redis/design/mvp-goal/): The current pgredis goal: completion condition, scope, release list and deferred work for v0.1.0.
