Comments (3)
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.
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.
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)
- Not working on Edge and Safari HOT 1
- Upgrade to .NET 8 HOT 1
- Does this library support Decryption of payload message at endpoint?
- error to Edge when lunch SendNotification HOT 1
- Can't set cancellationToken HOT 1
- Unfriendly exceptions are thrown when a malformed p256dh key is provided HOT 1
- WebPushClient: Implement an interface for mocking in UnitTests HOT 1
- SendNotificationAsync not working on Server HOT 1
- Why does NuGet package not updating HOT 1
- Remove Newtonsoft.Json dependency HOT 4
- The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
- .Net - NOT CORE! - Exception thrown: 'System.ArgumentException' in WebPush.dll HOT 1
- .NETStandard 2.0 not supported HOT 1
- Push notification Click Event not firing HOT 1
- Upgrade Portable.BouncyCastle C# .NET 1.8.8 or later. HOT 1
- Error 406 was encountered in sending push request, and the reason could not be found
- Subscription no longer valid. Details: push subscription has unsubscribed or expired.
- Apple web push causing errors HOT 8
- Customize link and icon in notification message HOT 1
- Upgrade to .NET 7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-push-csharp.