Giter VIP home page Giter VIP logo

Comments (8)

vladTrenea avatar vladTrenea commented on June 2, 2024 2

@stankovski thanks for the tip. We managed to overcome the problem in the end by injecting IHttpMessageHandlerFactory in our class and pass a handler to the NotificationHubClient in the constructor, in the NotificationHubClientSettings.

from azure-notificationhubs-dotnet.

marstr avatar marstr commented on June 2, 2024

Howdy, @morpheeen. I've just responded to a very similar Stack Overflow question. Assuming you're not the original poster in SO, would you mind filing a support ticket so that we can look at your namespace/hub without doxing you?

from azure-notificationhubs-dotnet.

morpheeen avatar morpheeen commented on June 2, 2024

Actually a colleague of mine was the one reporting the issue on stack overflow, I think the current implementation of the NotificationHubClient doesn't take into account this know issue: Azure/azure-functions-host#1806 and causes socket exhaustion on high loads, the fix would be to use HttpClientFactory (https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests) to create new HttpClient.

from azure-notificationhubs-dotnet.

stankovski avatar stankovski commented on June 2, 2024

See comments in #107. You should be able to re-use HttpHandler.

from azure-notificationhubs-dotnet.

Zapnologica avatar Zapnologica commented on June 2, 2024

It seems we are also having a similar issue with using the notification hub on high volume loads. However, we got the error 'Unable to connect to the remote server.TrackingId:92cf019d-f3fc-4721-ac99-4e375f65f68b,TimeStamp:2020-04-08T06:56:24.9336294Z'

This continued for a good hour, and then I restarted the app, and then it started working again immediately.

from azure-notificationhubs-dotnet.

morpheeen avatar morpheeen commented on June 2, 2024

See comments in #107. You should be able to re-use HttpHandler.

It's not working as expected... this is not a proper solution

from azure-notificationhubs-dotnet.

stankovski avatar stankovski commented on June 2, 2024

@morpheeen can you clarify what is not working and why it is not a proper solution?

from azure-notificationhubs-dotnet.

michaelmoneypenny avatar michaelmoneypenny commented on June 2, 2024

Is this still the recommended advice when using NotificationHubClient from an azure function? I see there is now the option of MessageHandler and HttpClient from NotificationHubSettings (trying to combat intermittent Socket exceptions/no known host issues)

from azure-notificationhubs-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.