Is YARP same proxy used internally by Grpc.AspNetCore.Web? #2846
-
When configuring an asp.net app for grpc-web, you can either use Envoy or the Grpc.AspNetCore.Web middleware. Would anyone happen to know if YARP is based on this middleware proxy? I ask because my boss has a React app that gets market-data from an ASP.NET 8 Core Grpc-Web Service he created with this middle-ware enabled, and he told me that when he puts an Envoy proxy in between, the app performs better as it streams much faster than when the React app communicated directly with the grpc-web service with the middleware proxy enabled. I'm wondering if this middleware proxy is at all related to the YARP proxy, because if it isn't, then perhaps if I enabled the YARP proxy instead of the built-in Grpc.AspNetCore.Web proxy I would get similar gains. Any devs here in the know? Many thanks in advance! Anthony |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm not sure I fully understand the question, but |
Beta Was this translation helpful? Give feedback.
I'm not sure I fully understand the question, but
Grpc.AspNetCore.Web
and YARP are completely separate things.You should be able to use YARP in front of a server that uses
Grpc.AspNetCore.Web
though.