Giter VIP home page Giter VIP logo

Comments (3)

tuwrraphael avatar tuwrraphael commented on June 12, 2024

5000 HTTP Post requests should not be a problem for the HttpClient; No matter if you call it synchronously or asynchronously. However I am not an expert on this topic.

As far as I understood, it is up to the push server (browser manufactorer) to reject push notifications, for example to filter spam, and the more "un-spam-like" your notification behaviour is, the more likely is that they get delivered.

Web push notifications should be

Timely, Relevant, and Precise (https://developers.google.com/web/fundamentals/push-notifications/)

in other words, it should be a short information targetted to a specific user, and it should reach the user in the right moment. Therefore also no broadcast capability is included in the standard.

Recently, I discussed the following case: A specific feature of a platform was under maintainance for some hours. The request was to inform all the users of the platform via web push that the feature is back online.
I suggested to provide a method for the user to request the notification instead of informing all the users. Like when a user tries to use an unavailable feature, some text explains that its currently under maintainance next to a button "inform me when available".
This has the advantage that other users don't feel "spammed", while the user who's waiting for the functionality is informed in the right moment, that its up again. A side effect is that users who didn't try to access the platform during that time did not even notice that it was unavailable.

from web-push-csharp.

coryjthompson avatar coryjthompson commented on June 12, 2024

502 bad gateway:
The server was acting as a gateway or proxy and received an invalid response from the upstream server.

As far as I can tell this would imply a temporary outage of the providers end. If a bad request was sent or you were being rate limited, i would expect a different response code (400, 429).

from web-push-csharp.

marsimoto03 avatar marsimoto03 commented on June 12, 2024

Thanks for the insight!
Today I got a 406 error code from edge / windows push notification service. The code doc says:

The cloud service exceeded its throttle limit. Log the details of your request. Reduce the rate at which you are sending notifications.

Does anyone know which rate is acceptable for edge?

EDIT: otherwise you can close this "issue". thanks for the help!

from web-push-csharp.

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.