Skip to content

An example of splitting read and write database operations using Spring Boot 2.0

License

Notifications You must be signed in to change notification settings

dominicgunn/fable-spring-read-replica

Repository files navigation

Read/Write Routing Data Source

This project aims to exemplify Springs ability to seperate read and write operations to your primary and replica databases.

Read the blog

A full blog post delving into details of this project is available for reading here.

Usage

In order to use this project, you'll need Docker and Java 8 installed. Run once: mkdir ./logs; chmod 777 ./logs Simply docker-compose up and then ./gradlew bootRun. You should see logs of fable_write inserting data, and fable_read then reading. Easy!

About

An example of splitting read and write database operations using Spring Boot 2.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages