Home › Knowledgebase › KB-1867

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

  1. Restart the Cosmic messaging processor service to clear temporary queue congestion.
  2. Verify that the receiver connection pool has sufficient capacity for current order volume.
  3. Check inbound API rate limits to ensure they are not throttling dispatch during peak periods.
  4. Monitor queue depth after applying changes to confirm lag has reduced.

Detailed Instructions

Clear Processor Buffers

  1. Open the Cosmic administration console and navigate to System > Messaging Processor.
  2. Select the active processor instance from the list.
  3. Click Buffer Management in the side menu.
  4. Choose Flush All Buffers to clear pending message data.
  5. 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

  1. In the Cosmic console, go to Configuration > Receiver Settings.
  2. Locate the ConnectionPoolMaxSize parameter.
  3. Increase the value to match your expected peak concurrent connections. For most environments, a starting value of 50 is recommended.
  4. Click Save Configuration.
  5. Restart the messaging processor to apply the new pool size.

Audit Inbound API Rate Limits

  1. Navigate to Security > API Rate Limits.
  2. Review the RequestsPerMinute threshold for inbound order APIs.
  3. If the limit is being reached during peaks, increase the threshold or implement request queuing.
  4. Save changes and monitor API response codes for 429 Too Many Requests errors.

Troubleshooting

Queue Depth Remains High After Buffer Flush

Messages Delayed but Not Queued

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