Embedding xml/json data in message: why not?

45 views
Skip to first unread message

Alberto Salvati

unread,
Mar 6, 2026, 10:44:27 AMMar 6
to grpc.io

Hi, all.
I'm a newbie, so I apologize in advance about:  

1) my question is lazy...

2)  my question has some answer in old messages or in some periodically update FAQ of this group... (it it exists please let me know how I can get it..)..

Question:
It's a "good" idea or not to have this situation with Payload that contains xml/json data, assuming payload is less than 2k..? 

enum MyMsgType {
    UNDEF = 1;
    TYPE_001= 2;
    TYPE_002= 3;
}

message MyMsg{
    string Id = 1;
     MyMsgType   MyType = 2;
     string Payload = 3
}

Thanks in advance for any answer.

Best.

A.






Reply all
Reply to author
Forward
0 new messages