β Why is my grpc so much slower then my minimal api? Need The Csharp Gods
Hey there a bit of an odd question
I've downloaded the code for this :
https://medium.com/geekculture/build-high-performant-microservices-using-grpc-and-net-6-adde158c5ac
basically is streams 1 line at a time to a client~---takes about 1 min to stream 1.5 mil lines,
Tried replicating the same behavior with Minimal Api and not sure how,
But it takes 13 seconds to read and stream all 5 million records,
Shouldnt it be slower?
I think my code is badly messed up and probably rotter logic all over the place π
Any Help would be swell
My Ui Code:
using HttpClient client = new();
app.MapGet("/test", async () =>
{
return MakeHttpCall();
});
Also the ui seems to start prining the text only when its all done, meaning not rly streaming..
(removed all the code regarding watch and count)
Save me C# Gods
Medium
Build High Performant Microservices using gRPC andΒ .NET 6
Learn how to leverage server streaming in gRPC to deliver 5Million records in a breeze
1 Reply
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.