3 ms·
Ah, got it! The upcoming 1.13 release will introduce a pure JSON interface for queries (which official drivers will switch to). You'll be able to construct JSO
by coffeemug 13y ago
Ah, got it!
The upcoming 1.13 release will introduce a pure JSON interface for queries (which official drivers will switch to). You'll be able to construct JSON directly, and send it to the server -- no protobufs. Would that make things easier?
- dkhenry 13y agoIt will make it on par with the interface for other document oriented databases. I think it will be a lot more user friendly then the protobuf, and it might be the best that Java can do.
- RyanZAG 13y agoSounds like that would work well - it's the approach ElasticSearch has taken with their APIs and they're generally very nice to use.
- coffeemug 13y agoTo clarify, in 1.13 JSON will be a communication protocol for queries. It's not intended to be used by the end user, but by the client drivers. You can use it as an end user, but it isn't nearly as nice as native language drivers. The change is meant to simplify driver development, packaging, and improve performance. Protobuf is worse than JSON in almost all of these categories.
- InAnEmergency 13y agoFWIW, I think this will make it much easier to implement drivers. Getting protobufs to work is a real pain.