Jason-Sijie / blogweb

A Markdown Blog Website in Spring and React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

M1: add Redis Datasource

Jason-Sijie opened this issue · comments

we apply Redis Datasource as file storage (key-value pair) to store the Blog Content.

  • We have multiple data sources in our application. Relational Database managed by Hibernate JPA. and Redis Database managed by Spring Data Redis
  • In M1, we only apply the String - String key-value pair data structure in Redis. In the future milestone, we may want to leverage Redis Hash.

Challenges

  • Configure Multiple data sources
  • Transaction management on both data sources.

commit: f7e5c0f

  • Add Redis data source
  • Enable Redis transaction
  • migrate Blog content from SQL to Redis