• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Pro Spring MVC with Webflux: what problems in Spring MVC are addressed by Webflux?

 
Sheriff
Posts: 17405
300
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
Hi authors: can you please explain what problems in Spring MVC does Webflux eliminate or mitigate? What's the compelling reason to move to Webflux or choose Webflux over regular Spring MVC?

(BTW, it's great that you acknowledge Tryvge's contribution of MVC in your book—I have actually had the privilege of meeting him in person several years ago)
 
Author
Posts: 56
15
Scala IntelliJ IDE Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Me and Marten have similar styles, we explain internals, provide useful code and mention history bits here and there.
It's our way to make sure technical people get some credit and recognition for the current state of the Software Development industry, especially since social media tends to give the spotlight only to rockstars CEOs.
 
Author
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As Iuliana already pointed out we try to cover the internals and technical parts of both.

The reasons to choose between either Spring MVC of Spring WebFlux can be many but the most common are

- familiarity with MVC or WebFlux (reactive is a whole new paradigm)
- Beter scalability with WebFlux (if done right)

However, as mentioned Reactive programming is a whole different paradigm and changes your whole application architecture if you want to do it right, including the database access, for which you would have to use something like R2DBC instead of JDBC.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic