Repository navigation
Closed
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / messagingFixes and upgrades for the Appwrite Messaging.product / vcsFixes and upgrades for the Appwrite VCS.
Description
Tracks PR #14438.
Plan
- Goal: Keep
worker-messagingmemory per push batch bounded by the requests in flight instead of the number of recipients, so overlapping large FCM topic pushes stop OOMKilling the fra1 worker at 512Mi (seen 2026-10-12 ~21:37 and 2026-10-13 ~09:37 UTC, per the PR). - What changes (all in fix(messaging): bound worker memory per push batch #14438, merged 2026-10-13):
packages/messaging/src/Adapter.php:requestMulti()builds each request when a worker coroutine sends it, and takes an optionalonResultcallback so results aren't held.packages/messaging/src/Adapter/Push/FCM.php,APNS.php: build theirResponsethroughonResult.src/Appwrite/Platform/Workers/Messaging.php:streamRecipients()frees the subscriber and target pages before sending.packages/messaging/tests/Adapter/Push/FCMTest.php: test coverage.- Follow-up to fix(messaging): send every multi request instead of failing past the pool size #14238 / Send every multi request instead of failing past the pool size #14239 (send every multi request past the pool size), which made full delivery, and this memory use, possible.
- Remaining steps:
- Ship it in an Appwrite release (it merged to
mainafter the 2.5.0 tag) and bumpserver-cein appwrite-labs/cloud so fra1worker-messagingpicks it up. - Cut a
utopia-php/messagingmirror release for consumers outside this repo, if needed. - Watch fra1
worker-messagingduring large pushes and confirm no OOMKills and memory stays well under 512Mi.
- Ship it in an Appwrite release (it merged to
- Done when:
- fix(messaging): bound worker memory per push batch #14438 merged
- Released and deployed to cloud
- No
worker-messagingOOMKills on fra1 during back-to-back ~12.6k-token pushes
Metadata
Metadata
Assignees
Labels
api / realtimeFixes and upgrades for the Appwrite Realtime API.product / messagingFixes and upgrades for the Appwrite Messaging.product / vcsFixes and upgrades for the Appwrite VCS.
Activity