Registry Mirror
Skip to content

Conversation

@adenhertog

Copy link
Copy Markdown
Contributor

Adds messages to an in-memory array as the outbox queue, and dispatches using a worker pool

Previously for handlers that sent high volumes of messages (eg, 10K+), the messages would be outboxed as anon async functions. These were previously dispatched using a single Promise.all(), which causes heap exhaustion particularly in low-mem environments.

This update provides the same final behaviour, but does it in a more memory-efficient way.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant