Spring Boot Webflux Reactive Netty: Avoiding Backlog with MonoSendMany.run()
Yes, there could be a problem if 'MonoSendMany.run()' writes faster than the receiver. This could lead to a backlog of data in the send buffer, which could eventually exhaust the system resources and cause the application to crash. To avoid this, it is important to ensure that the receiver is consuming data at a rate that is at least equal to the rate at which the sender is producing it. This can be achieved by implementing appropriate flow control mechanisms, such as backpressure, which allow the receiver to signal the sender to slow down when necessary.
原文地址: http://www.cveoy.top/t/topic/mLFx 著作权归作者所有。请勿转载和采集!