Repository navigation
Upgraded sdks versions - #1175
Merged
Merged
Conversation
TorstenDittmann
approved these changes
May 21, 2021
This was referenced Aug 28, 2026
pull Bot
pushed a commit
to AmirulAndalib/appwrite
that referenced
this pull request
Aug 31, 2026
The fan-out grouped receivers by their matched subscription IDs so one encoded frame could serve many connections. Those IDs are ID::unique() per subscription, so no two connections can ever share one and the key never collapsed -- it built one group of one, every time. Replaced with a direct loop over $receivers, which says the same thing in fewer lines. Behaviour is identical: frames, message totals and byte totals are byte-for-byte equal across 1..1000 connections and 1..3 subscriptions per connection. Also meter outbound bytes. Fan-out cost is driven by payload size times fan-out width, not by message count, and nothing exposed that: during OnCall appwrite#1175 three pods stepped +18/+78/+226Mi at a message rate of 21/s, below a 74/s peek 70 minutes earlier that cost nothing. The quantity that actually moved was invisible. $outboundBytes was already computed for usage accounting; this puts it on a counter too. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
New versions for our SDKs
Test Plan
N/A
Related PRs and Issues
N/A
Have you read the Contributing Guidelines on issues?
Yes