Trying to compare grpc to minimal api performence- minimal much faster, Logic probably rotten
So i got this grpc client that streams data from a csv to a console and just prints it,
in 1 minute it can do about 1.5mil records.
On the other hand i got this minimal api, Now here begins the problem
Im guessing I need to use httpclient to make the call inorder to compare?
Because before i had this:
And this was twice as fast , 3 million records in a minute then i figured out im testing it wrong,
However how do i use a client and what methode i need to invoke in the foreach?
How do i procced? obviously im doing smth/multiple things wrong.
If i try to do smth like this
I get a "does not contain extension defenition for getasyncenumarator
4 Replies
Nobody got any idea guys? 😄
foreach (var line in await client.GetAsync(""))
maybeNop , same error ""does not contain extension defenition for getasyncenumarat"
remove
await
before foreach
that one work with IAsyncEnumerable
while you just get a single message supposedly