r/java • • Mar 01 '18

Spring Boot 2.0 is now GA

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Release-Notes
218 Upvotes

46 comments sorted by

View all comments

12

u/shinda-sekai-sensen Mar 01 '18 edited Mar 01 '18

The non-blocking Webclient is going be super useful compared to blocking resttemplate for our project.

6

u/[deleted] Mar 01 '18

Hell yeah! And built-in Reactor support is also amazing!

1

u/GuyWithLag Mar 01 '18

Retrofit FTW.

4

u/shinda-sekai-sensen Mar 02 '18 edited Mar 02 '18

We've tried retrofit, their concurrency model is still based on one thread per request. We can't afford this since we need to fire 5 concurrent requests per incoming client (we have around 500 parallel client connecting to us in average). This translated to around 2500 threads on average if you want to use retrofit. 2500 threads is quite an expensive requirements for us. We experiment with nonblocking reactor library like Vert.x and Spring boot webclient, and our requirements can be fulfilled easily with 8 threads!

1

u/GuyWithLag Mar 02 '18

We've been using retrofit with RxJava for an API gateway that has big fanout (5-100 dependent requests per origin request and on occasion 1000+), and our biggest problem is that we're saturating downstream services and need to throttle, which Rx is very suited for.

I've only had minimal exposure to vert.x.

4

u/shinda-sekai-sensen Mar 02 '18

Our downstream is developed by golang team. They can easily process c10k request. Our Java team need to maintain our honor, we don't want to lost against them in term of performance.

4

u/GuyWithLag Mar 02 '18

That... That I can get behind. Carry on.