jamesge commented on issue #692: Add Mysql Protocol, only support text protocol now, not support trans… URL: https://github.com/apache/incubator-brpc/pull/692#issuecomment-474786548 > 对,现在一个request里面可以写多个命令,用逗号分割,一个request对应一个response,response里面会有多个reply,每个reply对应一个命令的结果。现在的问题是连接在single模式下,多线程读取消息可能错乱。这个是需要修改的。如果以后要是支持事务和prepared statement的话,那么一个连接就需要被独占,因为这个连接需要支持事务的多次访问,这种情况下,我觉得不能使用单链接模式了。你看应该如何选择。 连接模式是可以限定为pooled|short的,以确保response和request的对应关系。因为一般来说,连接数对mysql是个很重要的指标,mysql的线程模型也很落后,即使真地single连上去,server端未必能很好地应对。另外is_multi这个名字是不准确的,应该叫more_results吧?
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
