I want to get a certain amount of items from a stream and calculate an average from them.
The streaming works fine with Multi
but somehow the Uni
in the consumer
doesn't resolve and blocks the thread indefinitely.
./mvnw install
docker-compose up --build
- The
producer
starts with port 8080 - The
consumer
starts with port 8081 - You can send 10000 items via
http://localhost:8080/send/10000
in the browser to theconsumer
. - To see the stream from the
consumer
callhttp://localhost:8081/stream
- The problem occurs with
http://localhost:8081/avg