Skip to content

Commit

Permalink
chore: update readme diagram (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxcodec authored Dec 12, 2022
1 parent f312dc2 commit 9cf259a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This DBResolver library will split your connections to correct defined DBs. Eg,

Read more for the explanation on this [blog post](https://betterprogramming.pub/create-a-cross-region-rdbms-connection-library-with-dbresolver-5072bed6a7b8)

Excalidraw live [diagram](https://excalidraw.com/#json=DTs8yxHOGF6uLkjnZny4z,RVo8iwhO0Rk6DRGkKuNZTg)
### Usecase 1: Separated RW and RO Database connection

<details open>
Expand All @@ -21,7 +22,7 @@ Read more for the explanation on this [blog post](https://betterprogramming.pub/
- Your application is heavy on read operations
- Your DBs replicated to multiple replicas for faster queries
- You separate the connections for optimized query
- ![image](https://user-images.githubusercontent.com/11002383/180010864-c9e2a0b6-520d-48d6-bf0d-490eb070e75d.png)
- ![readonly-readwrite](https://user-images.githubusercontent.com/11002383/206952018-dd393059-c42c-4ffc-913a-f21c3870bd80.png)

</details>

Expand All @@ -33,7 +34,18 @@ Read more for the explanation on this [blog post](https://betterprogramming.pub/

- Your application deployed to multi regions.
- You have your Databases configured globally.
- ![image](https://user-images.githubusercontent.com/11002383/179894026-7206cbb8-35d7-4fd9-9ce9-4e62bf1ec156.png)
- ![cross-region](https://user-images.githubusercontent.com/11002383/206952598-ed21a6f8-5542-4f26-aaa6-67d9c2aa5940.png)

</details>

### Usecases 3: Multi-Master (Multi-Primary) Database

<details open>

<summary>Click to Expand</summary>

- You're using a Multi-Master database topology eg, Aurora Multi-Master
- ![multi-master](https://user-images.githubusercontent.com/11002383/206953082-c2b1bfa8-050e-4a6e-88e8-e5c7047edd71.png)

</details>

Expand Down

0 comments on commit 9cf259a

Please sign in to comment.