yangli2014 / bffwith_akka

0 stars 0 forks source link

TECH-DEBT: Flux.fromIterable and Mono.just should be probably refactored #11

Closed denkonakov closed 2 years ago

denkonakov commented 2 years ago

Looks like we use Flux and Mono for reason (streaming) in spring-boot. And that is the whole reason (I assume) for this project. Although I believe not every API-Server is ready to do that (non blocking way) we probably should have the version with non-blocking api-server for LoadTesting

denkonakov commented 2 years ago

This is partially interconnected with the Issue #6 since we need to eliminate blocking calls in there Api-rest (following the example of Horizon-Streams) and utilize it by pre-generation of some considerable amount of data?

Examples to follow: https://github.com/OpenNMS/horizon-stream/blob/develop/rest-server/src/main/java/org/opennms/horizon/server/service/PlatformGateway.java

And: https://stackoverflow.com/questions/72300024/does-the-use-of-spring-webfluxs-webclient-in-a-blocking-application-design-caus