zhangke96 opened a new issue, #1807:
URL: https://github.com/apache/incubator-brpc/issues/1807

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   brpc支持请求mongodb服务,支持副本集。
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   实现[MongoDB Wire 
Protocol](https://www.mongodb.com/docs/manual/reference/mongodb-wire-protocol/),使用Request
 Opcode 
`OP_MSG`。添加InsertRequest/Response,QueryRequest/Response,GetMoreRequest/Response(游标操作),CountRequest/Response,DeleteRequest/Response,UpdateRequest/Response,FindAndModifyRequest/Response
 protobuf定义,`PackRequest`转换为Mongo OP_MSG,`ProcessResponse`将解析Mongo OP_MSG,转换为pb。
   副本集功能的支持,添加一个`NamingService`通过`replSetGetStatus`获取副本集中的各个节点的状态,返回`PRIMARY`节点。
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   MongoDB文档没有详细描述CRUD操作的协议,因此可以通过编写MongoDB CRUD测试程序抓包模仿实现。
   
   **Additional context/screenshots (更多上下文/截图)**
   现在已经实现了mongo insert, find, getMore, count, delete, update, 
findAndModify操作,能够支持副本集(只会使用PRIMARY节点)
   
   
   


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to