This PR adds a docker compose in simple-ts to start YugabyteDB instead of PostgreSQL.
YugabyteDB is an Open Source PostgreSQL-compatible Distributed SQL. It can scale horizontally by simply adding new nodes.
Example, here is a 6 nodes YugabyteDB cluster with Replication Factor 3 (resilient to one node failure):
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=0
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=1
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=2
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=3
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=4
docker-compose -f docker-compose-yugabytedb.yml up -d --scale dist=5
The application connects to any node with the same driver as PostgreSQL
npm install
npm run start
The YugabyteDB UI is on port 15433:
The "users" table is distributed to 6 tablets with Raft leaders on all nodes:
This PR adds a docker compose in
simple-ts
to start YugabyteDB instead of PostgreSQL. YugabyteDB is an Open Source PostgreSQL-compatible Distributed SQL. It can scale horizontally by simply adding new nodes.Example, here is a 6 nodes YugabyteDB cluster with Replication Factor 3 (resilient to one node failure):
The application connects to any node with the same driver as PostgreSQL
The YugabyteDB UI is on port 15433: The "users" table is distributed to 6 tablets with Raft leaders on all nodes: