4 ms·
After several releases of your app, you'll have several wire formats in the wild. One of the main features of libraries like Protocol Buffers is that they can p
by 124816 16y ago
After several releases of your app, you'll have several wire formats in the wild. One of the main features of libraries like Protocol Buffers is that they can parse old messages, so you don't need to maintain an increasingly hairier parsing routine.
- revoltingx 16y agoWell, I deny access to the old clients. I consider this an advantage because I force users to keep up to date. If you're careful you can just add items to the end of the stream and the old clients will work just fine. I don't support this though, but I do it in practice. But yeah, protobuf wins in that domain. Specially if it avoids a high serialization/deserialization overhead penalty. It'd be cool to use rabbitmq to route the protobuf objects around with a cleaner interface. Shameless plug for my dev blog: http://developingthedream.blogspot.com/ http://developingthedream.blogspot.com/