Repository navigation
refactor(queue): use publishMany for synchronous batches - #317
Conversation
|
Benchmark resultsqueue — workload shapes across both concurrency axes (4 cores, 600 messages, median of 3)
Shared CI runners — treat absolute numbers as rough, compare modes within a run. Commit 657ad1d. |
|
Merged #317 after all checks on Published from that merge commit and verified in Packagist:
The withdrawn queue 5.0.0 and Platform 1.0.0-rc23 remain withdrawn. Fresh versions avoid replacing an already-published version with different contents. CI tests: 145 queue unit tests / 329 assertions; 151 queue integration tests / 743 assertions; 11 linked Platform tests / 92 assertions. Validation, static checks, benchmark, and both release split workflows passed. Application package-lock/configuration updates and deployment remain separate follow-ups. No application deployment or deployment-default change was performed. Release notes include the API migration, retention, and rollback details. |
The synchronous publisher API used
publish()for one message butenqueueMany()for a batch. Rename the batch method topublishMany()across the interface, Redis, NATS, Pool, Background, and callers. Keepenqueue()for Background's asynchronous handoff; synchronous methods still wait for broker acceptance.This is a queue 5 API change with no forwarding alias. Custom synchronous publishers and batch callers must rename
enqueueMany()topublishMany(). Documentation and tests use the same terminology. The withdrawn releases remain withdrawn.Validation: 145 unit tests / 329 assertions; 13 Redis/NATS integration tests / 129 assertions; Pint, PHPStan, Rector and documentation lint pass.
Follow-up to #316. Tracked in https://github.com/appwrite-labs/cloud/issues/5996.