What is the difference between a controller that gets input regular java payload and that of reactive payload? For example, say I have the following 2 endpoints:
@RestController
public class MyController {
@PostMapping
public Flux<SomeObject> doThing(@RequestBody MyPayload playlod) {
// do things that return flux - reactive all the way from this controller
and this one:
@RestController
public class MyController {
@PostMapping
public Flux<SomeObject> doThing(@RequestBody Mono<MyPayload> playlod) {
I don't understand the difference between the 2 methods in reactive point of view.