Mongo client support
What problem does this PR solve?
support mongo client 原pr:https://github.com/apache/brpc/pull/1808 官方reference: https://www.mongodb.com/docs/manual/
目前能够demo插入和查询,还需要做的:
- server端协议尚未测试, client 端没有压测,仅测试了单连接
- 支持compressed消息,即OP_COMPRESSED
- 支持naming service和load balancer
- 让接口更友好,目前是让client直接拼bson命令,后续应该能够自动插入$db之类的option
- 支持stable api,即legacy opcode
- 修复/增加单测
Issue Number: https://github.com/apache/brpc/issues/1807
Problem Summary:
What is changed and the side effects?
Changed:
Side effects:
-
Performance effects(性能影响):
-
Breaking backward compatibility(向后兼容性): 影响mongo protocol的server端的向后兼容。 Mongo protocol 本身已经不再向前兼容
Check List:
- Please make sure your changes are compilable(请确保你的更改可以通过编译).
- When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
- Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).
Mongo client有专门的支持naming service和load balancer吗?不是用目前brpc已有的支持naming service和load balancer?
Mongo client有专门的支持naming service和load balancer吗?不是用目前brpc已有的支持naming service和load balancer?
mongodb 是支持主从和分片的,我觉得可以做成专用的lb和naming service,这块的细节还没怎么看
不支持auth?