microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

WebFlux - why it's used in API Gateway only and isn't used in other services? #49

Open asn25 opened 4 years ago

asn25 commented 4 years ago

Hi Chris and community,

I have several questions regarding to WebFlux:

1) Why it's used in API Gateway only and not used in other services? 2) Could we use it, f.e., in Order Service instead of REST (i.e. to make reactive Controllers instead of usual)? 3) Are there any arguments for not using WebFlux in OrderService, KitchenService, etc.? What woul be pros and cons for using/not using WebFlux in all application services?

Thanks, Andrew