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.

Screen Shot 2022-07-12 at 17 19 26

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.