• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Pro Spring MVC with Webflux: how important is it to learn WebFlux?

 
Sheriff
Posts: 17005
298
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello authors!

Can you tell us more about the book's focus specifically on Webflux? How important is Webflux going to be in the Spring ecosystem and application architecture? How and where does Webflux fit into the overall Spring MVC architecture? Just want to get some idea of the important points around these questions that you discuss in your book.

Thanks!
 
Author
Posts: 56
15
Scala IntelliJ IDE Spring Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most microservices nowadays are reactive. Spring Boot is one of the most used tools to write and deploy microservices quickly. Spring Webflux provides a lot of components to build reactive microservices quite easily.
When everything you interractive around you, you have to adapt, right? So, Sring Webflux is very important for building reactive microservices with Spring.

As for Spring Webflux and MVC, they integrate together nicely, because in the same application  you might have bits that hsould n ott be reactive. For example, when logging into an application using a login form, there's no point having a reactive controller to handle the user logging in, since giving him access to something is dependent on him bbeing logged in.  But after logging in, you might have a page depicting some data that gets updated in real time, and that data should be handled by a reactive component - either a reactive controller of handler function.

In the book there are quite a few examplle that combine classic Sprring MVC components with reactive Webflux ones.

I hope this answers your question.
Cheers!
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

iuliana cosmina wrote:Most microservices nowadays are reactive. Spring Boot is one of the most used tools to write and deploy microservices quickly. Spring Webflux provides a lot of components to build reactive microservices quite easily.
...
As for Spring Webflux and MVC, they integrate together nicely, because in the same application  you might have bits that hsould n ott be reactive. For example, when logging into an application using a login form, there's no point having a reactive controller to handle the user logging in, since giving him access to something is dependent on him bbeing logged in.  But after logging in, you might have a page depicting some data that gets updated in real time, and that data should be handled by a reactive component - either a reactive controller of handler function.
...

I hope this answers your question.
Cheers!



I am confused why a login controller should not be a reactive controller. My understanding for reactive is to reuse the same thread for something else while waiting for the database or auth server response. Yes, the user cannot proceed without authorization, but while waiting for the request to be authenticated, the server thread can be used to serve other requests. There are other processes similar to the login process where some steps must be performed before it can proceed further. Does that mean these processes should not use a reactive controller? Thanks
 
Pay attention! Tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic