Marten Deinum

Author
+ Follow
since Oct 24, 2002
Merit badge: grant badges
For More
The Netherlands
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marten Deinum

Hi,

For nostalic reasons I'm searching for the original "Fly by Night" assignment from the SCJD (and SCEA if available). I searched my own backups (cds, dvds and my nas) but for the life of me I cannot find the assignment anymore. Somewhere in the last 23 years it got misplaced somewhere and I cannot find it.

Searching using google I did find the instructions, but not the code etc. for the assignment. I'm sure someone in here must have it in a backup somewhere and is hopefully willing to share it. I do find the newer assignments on various sites (the UrlyBird and Broker ones, but not the FBN one).

So if someone is willing to share the original code to complete my backup again I will be grateful.

Thanks,
Marten Deinum
JPA, currently, relies on JDBC and thus is blocking. There is Hibernate Reactive however that isn't really tailored to be used outside of Quarkus I believe. It doesn't integrate the common know Reactive libraries (RxJava and Project Reactor) but only supports Mutiny and AFAIK doesn't play nice with other Reactive implementations. Although you could use the regular Async API as it seems. BUt there still isn't support in Spring for that (nor would I expect that shortly) so you would have to write parts of the integration yourself I suspect.
2 years ago
Spring WebFlux like Spring MVC is more of an abstraction over different implementations like Netty, Undertow and it allows to use Project Reactor or RxJava. So it provides a unified approach, where Vert.x has its own implementation of everything.
2 years ago
Spring (Boot) has out-of-the-box support for R2DBC and Spring has reactive transaction support with @Transactional. So even with a reactive approach it is now possible to expose your database in a reactive way.
2 years ago
You still need something on the server to fullfil your requests, from that point-of-view your rest based controller receiving the JSON is still part of MVC. The view is the JSON representation in this case. So MVC or the server-side part of things is still relevant. Now the discussion on whether to use Reactive or traditional style programming is a different question that isn't answered easily. As reactive is a totally different programming model changing the architecture of your application, it isn't for everyone.
2 years ago
The actual version used when the book was released was Spring Boot 2.3.2, however upgrading to a newer version should be possible (although it might lead to some minor changes in behavior). Upgrading to the latest 2.3.x release should be quite easy to do.

The problem when writing a book, everything has to be finished about 2 to 3 months before the release date. Anything new after that, how bad we even want to cover that, isn't possible anymore without delaying the release with 1 or 2 months.
2 years ago
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.
2 years ago