TousakaRin commented on issue #3000: URL: https://github.com/apache/brpc/issues/3000#issuecomment-2986715318
> 但是大多数的业务场景都是连接池模式的吧, 很少有单连接的场景 No, it depends on your communication protocol. For protocols like http1.x where the server side must process requests on the same TCP connection **in sequence**,using connection pool is a good way to improve concurrency. For protocols such as http2.0 and baidu_std, a single connection is usually sufficient. For distributed systems, you should consider name [services and load balancing](https://github.com/apache/brpc/blob/master/docs/cn/load_balancing.md). If you must use brpc protocol with connection pool, you can use [connection_group ](https://github.com/apache/brpc/blob/d4e46bddc1771daf7f65c5643c60118651eb7b5b/src/brpc/channel.h#L145) to create multiple connections to same node and manage them manually. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
