git remote add origin https://github.com/Urunov/ReactiveSpring-NonBlocking-Projectss.git
- 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.
Asynchronous and Non Blocking.