Skip to content

Send every multi request instead of failing past the pool size #14239

Closed

Description

@ChiragAgg5k

Tracks PR #14238.

Plan

  • Goal: Make requestMulti() in the messaging package send every request in a batch instead of failing everything past the connection pool size, so large push messages reach all recipients and worker-messaging stops growing memory per job.
  • What changes:
    • packages/messaging/src/Adapter.php: requestMulti() starts at most MAX_CONCURRENT_REQUESTS (25) worker coroutines that pull from a shared cursor, each holding one pooled client at a time, instead of one coroutine per request against a 25-slot pool with timeout: 0.0. Results are re-sorted by index.
    • Per the PR description, this regressed in feat: added bcc only emails to smtp utopia-php/messaging#94 and showed up on cloud fra1 as push jobs capped at 25/50 deliveries and a worker-messaging OOMKill on 2026-10-07.
  • Remaining steps:
    1. Get fix(messaging): send every multi request instead of failing past the pool size #14238 reviewed and merged.
    2. Ship it in an Appwrite release and roll it out to cloud so worker-messaging picks it up.
    3. Cut a utopia-php/messaging mirror release (latest is 2.5.0) for anything consuming the package outside this repo.
    4. Confirm on fra1 that push jobs no longer stop at 25 delivered per batch and memory stays flat.
  • Done when:

Activity

  1. self-assigned this
    on Oct 7, 2026
  2. added
    product / databases
    product / messaging
    product / vcs
    sdk / cli
    on Oct 7, 2026
  3. ChiragAgg5k commented on Oct 8, 2026

    @ChiragAgg5k
    MemberAuthor

    Released in cloud 1.50.149 (server-ce bump appwrite-labs/cloud#6391 contains #14238).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / databasesproduct / messagingproduct / vcssdk / cli

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions