Why Cosmic's Message Dispatch Is Lagging During Order Peaks
Summary
This guide helps you troubleshoot and resolve: Why Cosmic's Message Dispatch Is Lagging During Order Peaks. Follow the steps below to fix the issue.
Quick Tip: Need immediate assistance? 💻 Open a Ticket
Common Causes
Cosmic's Message Dispatch system can experience throughput degradation during order peaks, resulting in delayed message delivery and queue backlog. This guide explains how to identify and resolve message queue lag in Cosmic by clearing processor buffers, optimising receiver connection pools, and auditing inbound API rate limits during high-traffic trading sessions.
Quick Fix Steps
- Restart the Cosmic messaging processor service to clear temporary queue congestion.
- Verify that the receiver connection pool has sufficient capacity for current order volume.
- Check inbound API rate limits to ensure they are not throttling dispatch during peak periods.
- Monitor queue depth after applying changes to confirm lag has reduced.
Detailed Instructions
Clear Processor Buffers
- Open the Cosmic administration console and navigate to System > Messaging Processor.
- Select the active processor instance from the list.
- Click Buffer Management in the side menu.
- Choose Flush All Buffers to clear pending message data.
- Confirm the action when prompted and wait for the buffer status to return to
Empty.
Flushing buffers will temporarily pause message dispatch. Schedule this during a low-traffic window where possible.
Optimise Receiver Connection Pools
- In the Cosmic console, go to Configuration > Receiver Settings.
- Locate the
ConnectionPoolMaxSizeparameter. - Increase the value to match your expected peak concurrent connections. For most environments, a starting value of
50is recommended. - Click Save Configuration.
- Restart the messaging processor to apply the new pool size.
Audit Inbound API Rate Limits
- Navigate to Security > API Rate Limits.
- Review the
RequestsPerMinutethreshold for inbound order APIs. - If the limit is being reached during peaks, increase the threshold or implement request queuing.
- Save changes and monitor API response codes for
429 Too Many Requestserrors.
Troubleshooting
Queue Depth Remains High After Buffer Flush
- Check for stuck consumer connections in Monitoring > Active Sessions.
- Verify that downstream systems are accepting messages and not returning errors.
- Review processor logs in
/var/log/cosmic/dispatch.logfor repeated failure patterns.
Messages Delayed but Not Queued
- Inspect network latency between the Cosmic processor and receiver endpoints.
- Confirm DNS resolution times are not contributing to dispatch delays.
- Ensure firewall rules are not throttling outbound traffic on required ports.
Do not disable rate limiting entirely during peak periods, as this can expose your system to API abuse and instability.
If queue lag persists after following these steps, contact your system administrator or vendor support for further investigation.
Still Having Issues?
Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.
💻 Open a Ticket
💻 Open a Ticket