chaokunyang commented on PR #1413:
URL: https://github.com/apache/incubator-fury/pull/1413#issuecomment-2025195417

   > > > > One more thing is that do we need to add a int16 magic number at the 
header? JDK serialization use two bytes, avro use 4 bytes, 
kryo/protobuf/flatbuffer doesn't add magic number. @theweipeng @PragmaTwice 
@LiangliangSui @pjfanning
   > > > 
   > > > 
   > > > I think it would be necessary, we can use the magic number to indicate 
the protocol version
   > > 
   > > 
   > > There are 4 bits empty in fury header, which can be used to indicate the 
protocol version too.
   > 
   > I have noticed that sometimes, applications may encapsulate the data 
buffer using a proprietary protocol. On the receiving end, the use of a magic 
number is helpful for them to identify which protocol is being used.
   
   Added two bytes header to the spec


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to