qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

请问性能测试中提到的高效模式是指什么 #84

Open pieny opened 1 year ago

qicosmos commented 1 year ago

可以在handler里面调用线程池,在线程池里处理请求并回复客户端。

pieny commented 1 year ago

请问有关于这部分的例子吗,在example中好像没有找到

qicosmos commented 1 year ago

https://github.com/qicosmos/rest_rpc/blob/master/examples/server/main.cpp#L83 这里面的thread换成线程池