ctaggart / froto

Froto: F# Protocol Buffers
MIT License
146 stars 27 forks source link

gRPC on top of ASP.NET Core 3.0 #90

Closed ctaggart closed 5 years ago

ctaggart commented 6 years ago

ASP.NET Core 2.2 Roadmap https://github.com/aspnet/Announcements/issues/307 HTTP/2 in Kestrel & HttpClient The title says it all in this case. HTTP/2 support for all. We started this work some time ago, and have had the protocol mostly implemented for a while but not compiled into the product since it wasn't ready. This version we will finish that work and implement the missing features.

My understanding is that gRPC is a pretty thin layer on top of HTTP/2. With HTTP/2 finally coming with ASP.NET Core 2.2, would it be beneficial to build a gRPC layer on top?

ctaggart commented 6 years ago

Well, looks like someone else had the same idea. Happy to see that I may not have to do the work:

https://twitter.com/davidfowl/status/1020870675135750145

I plan to use it as a baseline for my Kestrel HTTP/2-based gRPC/gRPC-Web implementation when HTTP/2 support in .NET Core 2.2 gets stable (around .NET Core 2.2 preview 1?) https://github.com/grpc/grpc/issues/15139#issuecomment-406806574

ctaggart commented 5 years ago

Kestrel added http2 response trailers 4 days ago on 10/5. It will be in 2.2.0-preview3

https://github.com/aspnet/KestrelHttpServer/issues/622 https://github.com/aspnet/KestrelHttpServer/commits/release/2.2 2018-10-05 daf6e1e Http/2 response trailers

Learning About The Headers Used for gRPC over HTTP/2 https://apievangelist.com/2018/02/05/headers-used-for-grpc-over-http2/

ctaggart commented 5 years ago

An Early Look at gRPC and ASP.NET Core 3.0 2019-02-26 by @stevejgordon https://www.stevejgordon.co.uk/early-look-at-grpc-using-aspnet-core-3

ctaggart commented 5 years ago

It is pretty great to see .NET engineers I've interacted with who are now at Microsoft and Google working on this together. Here they are working on the performance of the protobuf library: https://twitter.com/davidfowl/status/1106061725730668544