Back to all use cases

RemediationTelecommunications

Scaling RabbitMQ to support a large connected-device fleet for a global telecom leader

Global Telecom Leader

Resolving weekly RabbitMQ crashes, optimizing for a large connected-device fleet, and architecting horizontal scaling strategy.

Performance troubleshooting

Overview

The company's IoT platform relies on RabbitMQ to handle messaging for a large fleet of connected devices with plans for significant scaling. Weekly out-of-memory crashes and performance bottlenecks were threatening platform stability and growth plans.

Challenge

RabbitMQ nodes were crashing weekly due to out-of-memory errors caused by improper vertical scaling approach, low prefetch counts (set to 1), and missing TTL configurations on queues. Producer blocking from slow consumers was creating cascading failures. The team was using classic queues without mirroring, leaving them vulnerable to data loss during node failures.

Environment

Kubernetes deployment, RabbitMQ handling a large number of device connections, Spring Boot consumers, plans for horizontal scaling with Prometheus/Grafana monitoring.

Approach

AceMQ conducted a multi-day intensive remediation with live environment review, real-time configuration changes, and hands-on performance optimization. The team analyzed metrics, reviewed topology, and provided detailed architectural recommendations for scaling.

Solution

  1. Recommended horizontal scaling strategy (more nodes) instead of vertical scaling
  2. Increased prefetch count from 1 to 20 for dramatically improved consumer throughput
  3. Configured lazy queues to reduce producer blocking by enabling direct-to-disk writes
  4. Implemented per-queue memory limits and TTL policies to prevent OOM crashes
  5. Raised high water mark from 0.7 to 0.9 for better memory utilization
  6. Designed migration path from classic queues to quorum queues for high availability
  7. Provided Excel-based server requirements calculator for capacity planning

Outcome

The client received configuration changes and a scaling roadmap aimed at stopping the recurring RabbitMQ crashes and improving consumer throughput, and has a clear path to support growing device counts.

Technologies

RabbitMQKubernetesQuorum QueuesPrometheusGrafana

Facing a RabbitMQ Production Issue?

AceMQ's senior RabbitMQ engineers have handled this exact type of engagement before. Whether you need architectural guidance, hands-on remediation, or an ongoing managed partnership, we're ready to help.