dpd46554
2015-12-18 21:30
浏览 326
已采纳

动态更改序列化的protobuf消息?

Is it possible to alter (append, merge, etc) a serialized protobuf message without having to unmarshal it first? I'm using the golang/protobuf package.

Ideally I would like to have a service that can receive incoming serialized messages, append some fields on-the-fly, then pass the message along to the next service -kind of like middleware, where additional information can just be added to the payload without having to constantly unmarshal and marshal.

Some context: the system is realtime, so I'd like to minimize overhead wherever possible.

1条回答 默认 最新

相关推荐 更多相似问题