Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non blocking API - Spring Reactor or Express (NodeJS) or Something else

We have a Java backend (JPA based data access mostly) and as the next phase of the application want to build a non blocking API layer that will be accessed by our user interface layer and need to finalize the stack.

We are split between Spring Reactor and Express. Our team has expertise in Spring but has never worked in Spring Reactor. They're pretty comfortable with Express though and love the simplicity of Express.

Does anyone have experience in evaluating the two frameworks? Or should we be looking at something totally different? Any pointers will be really helpful.

like image 997
singhspk Avatar asked Jul 01 '26 05:07

singhspk


1 Answers

Since your backend uses Spring it's better using homogeneous tech stack. Coming back to Non-blocking IO this can be done by multiple ways

  1. Use asynchronous calls from UI or client
  2. Use websocket for communication. Fire the event and forget. Once data is available it will be pushed to the client. For this approach use SockJS for cross-browser support.
  3. Reactive programming using Spring Reactor or RxJava
  4. You can consider RxJS as well.
like image 156
Debopam Avatar answered Jul 02 '26 21:07

Debopam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!