-
-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(hub): ensure that an update is dispatched if any of its topics is subscribed and allowed #688
Conversation
Looks faster according to my tests.
Might just be that the new logic is more optimal for the test data set. |
I tweaked the logic again because this patch broke the cache: #689 |
Hello, I've deployed the latest beta version to production. Let's run it for a week. We're again under server limits... going up to 16M of notifications per day with up to ~4k subscribers. Probably time to upgrade the server 😄. Thanks! |
Thanks for testing @divine! I've an idea to improve the algorithm a bit more (using gob instead of ascii86 to encode the key), but this shouldn't change significantly the performance. |
There is a flaw in the current logic. According to the spec, an update must be dispatched if:
https://mercure.rocks/spec#subscribers
This fixes #651 (thanks @mab05k).
@divine @kevburnsjr, this changes a bit the logic introduced in #578.
Would you mean to check it doesn't introduce any performance regression?