Using MsgPack in your asp.net core webapi
MsgPack (here) is reportedly faster then msgpack-cli in terms of performance. To get your excited, check out the diagram below :-
Yes, it is ridiculously fast and beat protobuf in many ways. I was gonna put on my hardworking cap and write up some formatters but this way is easier to do :-
Client code
Client side code to de-serialized it.
Install
Install it through nuget using the following command :-
Install-Package WebApiContrib.Core.Formatter.MessagePack -Version 2.0.0
Next, you gotta decorate your objects with the correct attributes.
And then somewhere in your controller, you can serialize your object as bytes and push it through using code below :-
Comments