dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.64k stars 25.28k forks source link

gRPC support for streaming in App Services #30425

Closed karpikpl closed 1 year ago

karpikpl commented 1 year ago

I've been running into some issues running a server streaming call between 2 app services.

App service "Client" is scaled up to 2 instances and uses a background service to connect to App Service B "gRPC Server". Server is configured to stream same messages to all connected clients. That works when client is a console app (multiple instances running) but it doesn't work for Azure App service instances - randomly, only one of the instances gets the message.

Is that caused by Azure App Service networking? we cannot stream messages to individual instances?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

wadepickett commented 1 year ago

@JamesNK, are there any missing restrictions or notes regarding this that I should add to the support section on this doc for Azure App Service?

@karpikpl, thanks for contacting us, In addition to verifying we are not missing a restriction note on the Azure App Service that might be helpful (above), for questions like this regarding troubleshooting your architecture/code we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.

Stack Overflow ASP.NET Core Slack ASP.NET Gitter

Potential bugs in the ASP.NET Core framework and product feedback can be reported at dotnet/aspnetcore issues (include full repro steps and cross-link to a repro project in GH when appropriate). For Visual Studio, use the Report a Problem gesture or Suggest a Feature gesture within VS, which open internal issues for the VS team. For Visual Studio Code, you can open an issue at microsoft/vscode issues.

karpikpl commented 1 year ago

I think you’re right and this belongs to stack overflow. I just wondered if there are any known limitations on the app service that should be mentioned in the documentation. For example I see my long-living streams be canceled when there’s no activity, I’m not sure if that’s because of app service or azure load balancer (do they require keep-alive?)

wadepickett commented 1 year ago

I will close this issue, but feel free to re-open if there is something specific to change here for the docs.

I will also watch for any following comment by James in case he determines there is anything to add to the Azure App Service section of this doc that is related, in which case we will re-open the issue.

wadepickett commented 1 year ago

Checked back on this today in case there were more comments.

karpikpl commented 1 year ago

I think I identified the issue better and reproduced it - opened https://github.com/dotnet/AspNetCore.Docs/issues/30444 for it