#Spring Webflux vs RestClient

1 messages · Page 1 of 1 (latest)

cedar valeBOT
#

<@&1004656351647117403> please have a look, thanks.

spring escarp
#

Never use reactive programming except if you really have to, or you really want. In general technical debt will rise and development will be slower because most devs have issues with it because they just don't use it that often. And with all these features added since Java 8 theres pretty much no reason to start nowadays a project with webflux unless you know you have/want to.

tribal heron
#

My thought too

#

He started already, but I did not know what it was a week ago. But now I do

tribal heron
#

But wouldnt it be weird to have a microservice that retrieves data through webclient and posts it using restclient?

spring escarp
#

RestClient + HTTP Interfaces is the usual way to go imo.
Because you already use reactive I would rather stick to it but I've never deeply worked with webflux so I don't know how well the RestClient integrates with webflux

tribal heron
hollow onyx
#

Honestly, for 10-30 records daily (and even occasional 10k spikes), reactive programming is overkill. A simple RestTemplate or WebClient in blocking mode is simpler and perfectly fine.

abstract wasp
#

why do you need reactive when virtual threads exist :3

#

hope webflux dies

hollow onyx
#

It does have some concrete use cases

cedar valeBOT
#

@tribal heron

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍