I gonna create
- Spring Boot MVC / JPA / Data CRUD project - simple REST service. Put in container
- Store some data in mysql DB. Put in a separate container
- use docker compose to up 1 & 2 together
- Use a circuit breaker pattern (Hystrix?): @Retry & fallback methods while store to DB
- Gonna use Spring Initializr
For that purpose I need to use:
- Spring Web
- Spring Data JPA
Options in Spring Initializr.
The question is: do a I need to use MySQL Driver: MySQL JDBC and R2DBC driver.
option? Or mysql in separate container will be ok?