https://github.com/stylepatrick/spring-boot-reactive-postgres-demo
Spring Boot API with stream of postgres database table. WebFlux and R2DBC used.
https://github.com/stylepatrick/spring-boot-reactive-postgres-demo
postgresql r2dbc-postgresql reactive reactive-programming spring-boot webclient
Last synced: 3 months ago
JSON representation
Spring Boot API with stream of postgres database table. WebFlux and R2DBC used.
- Host: GitHub
- URL: https://github.com/stylepatrick/spring-boot-reactive-postgres-demo
- Owner: stylepatrick
- License: mit
- Created: 2021-09-30T17:33:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T16:21:35.000Z (over 3 years ago)
- Last Synced: 2025-01-26T07:41:23.915Z (5 months ago)
- Topics: postgresql, r2dbc-postgresql, reactive, reactive-programming, spring-boot, webclient
- Language: Java
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-boot-reactive-postgres-demo
Spring Boot API with stream of postgres database table. WebFlux and R2DBC (-> provides reactive repository for postgres) used. Non-blocking threads + asynchronous data load with subscriber and publisher.### Endpoints
- /api -> get all Members from table streamed to subscriber (client)
- /api/{name} -> get specific Member by name
- /api/create/{name} -> Add new Member to table
- /api/delete/{name} -> Delete member from tableA scheduler is running every 20s which retrieves the streamed data from /api endpoint to demonstrate the function of WebClient for reactive.
Got inspiration by: https://dassum.medium.com/building-a-reactive-restful-web-service-using-spring-boot-and-postgres-c8e157dbc81d