I made a spring reactive backend which returns Flux<> object. When I call the service with angular httpClient and subscribe to the observable returned. The result is never triggered. So why Observable is returned rather than a Promise if only one response is possible ? I have tried the same with hardcoded nodeJS SSE service. I have the same result, but it work well with an event source. My question might be weird but the Observable wasn't choose by chance, so my understanding is certainly wrong and I want to understand.
Observables have several advantages compared to promises when making HTTP Requests:
retry
, retryWhen
)switchMap
, unsubscribe
...)