https://github.com/urunov/reactivespring-nonblocking-projectss
https://github.com/urunov/reactivespring-nonblocking-projectss
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/urunov/reactivespring-nonblocking-projectss
- Owner: Urunov
- Created: 2022-07-12T11:29:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-15T09:01:11.000Z (about 3 years ago)
- Last Synced: 2025-01-25T07:27:33.778Z (8 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ReactiveSpring-NonBlocking-Projectss
git remote add origin https://github.com/Urunov/ReactiveSpring-NonBlocking-Projectss.git
## Fundamental Design API
* Imperative Style APIs
- Top-down approach.
- Blocking and Synchronous.
We should to make calls asynchroous, basically non blocking
* Currently in Java we have:
- Callbacks
- Complex
- NO return
- Code is hard to read and maintain
- Leads to CallBack hell.
- Futures
- Another alternative to write asynchrnous code in Java.
- Returns Future instance.
- Hard to compose multiple asynchronous operations.* Completable Future
- Introduced as part of Java 8.
- Supports functional sytle API.
- Easy to compose multiple Asynchrnous operations.
- Not a greate fit asynchrnous call with multiple items.## 1. Reactive Spring
Asynchronous and Non Blocking.
## 2. Thread per request.