Closed imgoby closed 1 week ago
@imgoby Thanks for the report. We will triage the issue and get back to you.
You can set it to async. StreamBridge.setAsync()
and then your sends will be asynchronous
I am closing it as an answered question. If you still believe there is an issue please describe and more details and we'll reopen
there is not setAsync() method in spring cloud 2022.
Please upgrade ;)
OK,Thank you
Describe the issue
During high concurrency, StreamBridge's send() calls are frequent, and the internal synchronization of send() prevents applications from fully utilizing the multi-core capabilities of the CPU.
To Reproduce Steps to reproduce the behavior:
Additional context I tried to increase the number of instances of StreamBridge through certain methods, and CPU usage began to rise. Concurrent performance improves.
So,I know :Default situation,StreamBridge is a singleton, and its send() method has performance issues.
Does spring cloud stream team know this issue? Can it be optimized?