Can proto3 messages talk to applications using proto2?

75 views
Skip to first unread message

Nadder Makhlouf

unread,
Sep 28, 2023, 11:14:39 AM9/28/23
to Protocol Buffers
I'm doing some porting to a new platform and I want to explore building my latest libraries with newer protobuf version. Hoowever, there can still be some applications using old proto2 versions.

Will there be any problem to communicate with the applications using protobuf versions 2.x from an application using newer protobuf version 3.x?

Matthew Fowles Kulukundis

unread,
Sep 28, 2023, 11:17:36 AM9/28/23
to Nadder Makhlouf, Protocol Buffers
Nadder~

proto2 and proto3 messages can safely co-exist in the same process.  It is better not to think of them as "versions" and more as "dialects".

Matt

On Thu, Sep 28, 2023 at 11:14 AM Nadder Makhlouf <chefjoe...@gmail.com> wrote:
I'm doing some porting to a new platform and I want to explore building my latest libraries with newer protobuf version. Hoowever, there can still be some applications using old proto2 versions.

Will there be any problem to communicate with the applications using protobuf versions 2.x from an application using newer protobuf version 3.x?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/aaaaf284-6247-4009-acf2-4d574c1f1fb1n%40googlegroups.com.

Nadder Makhlouf

unread,
Sep 29, 2023, 3:02:16 PM9/29/23
to Protocol Buffers
Hi Matt,

Thanks for your response. That sounds good, it will make my development hopefully simple then.

Reply all
Reply to author
Forward
0 new messages