Fast and efficient data serialisation with Protocol buffers (protobuf) in .NET

preview_player
Показать описание

Hello everybody I'm Nick and in this video I will show you what are the advantages of using Protocol buffer (or protobuf) in order to serialize and deserialize your data in .NET. Not only you will be able to run faster operations because of it but you will also be able to store a significantly smaller object while gaining performance. In this video I will use Redis as an example of a use case.

Don't forget to comment, like and subscribe :)

Social Media:

#dotnet #csharp #protobuf
Рекомендации по теме
Комментарии
Автор

Moving our internal microservices call to gRPC, speed matters! Thanx for Redis case, that's a great improvement also!

AlexMescalinich
Автор

It's a great video and a great use case of proto serialization, really out of the box, it open my mind for a lot places where I can use it. Thanks a

alfredoquintanalopez
Автор

Hi Nick, I know this is an older video, but could you maybe try out different data serialization libraries, compare them and share you insight about them. Json, MessagePack, protobuf and MemoryPack?

markpolak
Автор

You mentioned a docker-compose you were going to add to the description, but I'm not seeing it. It IS a helpful video!

malcolmlearner
Автор

The memory gains in the Redis cache are a great benefit, but if the aim was optimising response time would it make more sense to cache the response body verbatim? I.e. if the response body was the json string then if you had a cache hit, you wouldn't even need to deserialize (and then serialize into your dto again) as you can just pass on the cached value instead (which is already a json string of your dto).

DryBones
Автор

Fantastic video, you are very good at explaining things in plain English.

kevinli
Автор

Thanks Nick for sharing with us. You are saviour. God bless you ❤️.

chintsbilly
Автор

Really want to see grpc video! Protobuf looks very efficient too

DanteDeRuwe
Автор

Very good technology ill have to take a look. how does it handle adding a new property to the contract?

killpopers
Автор

awesome man, thanks for on point explanation

faisalmorensya
Автор

Hi, How to use buffers ring in microservices with ocelot?. Lookl forward to avideos.

vankhanhnguyen
Автор

It is protobuf make more memory allocation cause intensive MemoryStream usage?

semen
Автор

Is there any way to automatically create contracts without all the messing around with the attributes..? I'd rather just use JSON at this point, less stuff to get it to work

HiImKyle
Автор

you scratched the surface, now theres an itch, need more input!! :P

acidrazor
Автор

What do think using protobuf to pull tracking history which is in our case about 2MB atleast ..takes about 15 sec?is this production stable? I'm thinking of trying it.

randompoints
Автор

Hey Nick, Great Video thanks a lot for posting. One question for you. can we use protobuf to do serialization and deserialization for the rest calls ? Like I wanted to communicate between my angular app and aspcore api with protobuf instead of JSON objects. Please advice

moneymaster
Автор

Ok.. So basically this is only to demo the local for your in mem cache right? Coz i see youre still sending the json format over the wire! if so then where's the real benefit of using protobuf in the first place.

soho
Автор

Protocol buffers don't allow types to be nullable, which is a huge drawback for this use case.

lkarabeg
Автор

What is it? "A language-neutral, platform neutral, extensible mechanism for serializing structure data".

No, what is it really? "A good binary serializer".

I don't think they describe it well for adoption.

SecondFinale