lizhimins commented on issue #8159:
URL: https://github.com/apache/rocketmq/issues/8159#issuecomment-2119844313

   不写回 response 主要就是为了防止反压导致服务端 oom,然后 
NettyServerHandler#channelWritabilityChanged 这里还有个保护(其他产品也是类似的做法)保证不会丢到过多的 
response。大多数情况下,连接来自客户端,不处理来自客户端的请求之后,服务端可以通过应用层 scan channel 来移除 
channel,同时释放内存。从上述 issue 没太理解是为了解决什么问题,是否可以调整 server watermakr 来解决?
   
   Not responding mainly aims to prevent backpressure from causing server-side 
OOM errors. Furthermore, there’s a safeguard in 
NettyServerHandler#channelWritabilityChanged to ensure that an excess of 
responses isn’t dispatched (a similar approach is adopted by other products). 
In most cases, connections originate from the client. By not reading and 
processing requests from the client, the server can remove the channel through 
an application layer schedule task scan. From the above issue, it's not 
entirely clear what problem this is intended to solve. Is it possible to adjust 
the server watermark to address this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to