How to serialize in .NET MessagePack and deserialize in Node.js
I have a RabbitMQ queue and two applications. First application is written in .NET core to generate send the payload to queue and the second one is in Node.js to read from the queue. Producer Application I use MessagePack-CSharp to serialize and compress (LZ4) the payload. Here is the serialization code in .NET: using MessagePack; namespace uBeac.Serialization { public class MessageSerilizer { public static byte[] Serialize(object message) { MessagePackSerializer.SetDefaultResolver(MessagePack.Resolvers.ContractlessStandardResolver.Instance); return LZ4MessagePackSerializer.Serialize(message);
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.