25 articles
Knowledge Base
Messaging
25 articles in the Messaging category · page 1 of 2.
- Setting up a RabbitMQ cluster — three nodes, quorum queues, a load balancer Set up a RabbitMQ cluster on three AlmaLinux 9 nodes, starting from a single broker. You will add quorum queues, a load balancer, and the management UI behind nginx with a Let's Encrypt certificate.
- Migrate RabbitMQ from mirrored classic queues to quorum queues Classic queue mirroring was removed in RabbitMQ 4.0. Inventory your mirrored queues, understand the Raft model behind quorum queues, then declare, drain with a Shovel, cut publishers over and delete the old queue — with the policies and client-side caveats that change along the way.
- RabbitMQ dead-letter exchange setup: route rejected, expired, and over-length messages Set up a RabbitMQ dead-letter exchange so rejected, expired, or over-length messages land in a dead-letter queue instead of vanishing, plus a TTL-based retry-with-delay loop.
- Redis keyspace notifications and expired events — how to configure them and where they stop being reliable Composing the notify-keyspace-events flag string, subscribing to the keyspace and keyevent channel families, why an expired event lags the TTL, what replication and Cluster change, and when to reach for a Stream consumer group instead.
- RabbitMQ shovel across vhosts — moving messages between tenants on the same broker A walkthrough of dynamic shovels for moving messages between vhosts on a single RabbitMQ cluster — tenant migrations, queue drains, and the gotchas of in-cluster shovels.
- Kafka Streams basics — KStreams, KTables, and a windowed aggregation in production A working introduction to Kafka Streams — the topology DSL, KStream vs KTable, a windowed aggregation, and the state-store, rebalance, and exactly-once knobs an MSP cares about.
- Installing Apache Kafka on Ubuntu — single-broker KRaft baseline A working Kafka install on Ubuntu using KRaft mode (no ZooKeeper) — JVM, dedicated user, log dirs, systemd unit, and the first topic, the way an MSP sets it up.
- Queue-depth monitoring — the metric that actually predicts incidents How to monitor message-broker queue depth in a way that catches real problems — what to alert on, what to ignore, and the dashboards an MSP wires up on day one.
- NATS leaf nodes — connecting edge clusters to a central hub A walkthrough of NATS leaf-node configuration — edge-to-hub routing, auth boundaries, JetStream domain mapping, and the pitfalls of accidental subject leaks.
- NSQ basics — distributed-by-design with nsqd and nsqlookupd Installing NSQ as a distributed work queue — nsqd nodes, nsqlookupd discovery, channel fan-out, and the operational shape an MSP runs in production.
- Kafka — ZooKeeper vs KRaft, and why new deployments go KRaft The decision between ZooKeeper-mode and KRaft-mode Kafka — controller plane, operational surface area, migration path, and what an MSP recommends for greenfield and existing clusters.
- Sidekiq for Rails — background jobs, queues, and the production checklist Wiring Sidekiq into a Rails app — Redis backend, worker classes, queue priorities, retries, scheduled jobs, and the operational settings an MSP applies.
- Dead-letter queues — the pattern, the wiring, and the runbook Dead-letter queue design across RabbitMQ, Kafka, SQS, JetStream, and friends — what to route, how to alert, and the triage runbook an MSP runs against the DLQ.
- Exactly-once vs at-least-once — the delivery-guarantee decision that matters A practical comparison of message-broker delivery guarantees — what exactly-once actually means, what at-least-once costs, and how to choose between them.
- Installing RabbitMQ on Ubuntu for production A grown-up RabbitMQ install on Ubuntu — Erlang pinning, signed apt repositories, systemd limits, management plugin, and the first user the way an MSP sets it up.
- Beanstalkd basics — tubes, jobs, and the smallest useful work queue Installing and operating beanstalkd as a lightweight work queue — tubes, jobs, reservation lifecycle, and the operational gotchas of a single-binary queue.
- Apache Pulsar broker overview — architecture, BookKeeper, and when to pick it A working introduction to Apache Pulsar — broker vs bookie, the BookKeeper storage layer, tenants/namespaces, geo-replication, and where Pulsar fits next to Kafka and RabbitMQ.
- RabbitMQ federation across sites — when shovel is wrong and federation is right Multi-site RabbitMQ with the federation plugin — upstreams, policies, the difference from shovel, and the network and lag realities of running across two regions.
- Installing NATS server — single-node baseline with sane defaults A clean NATS install on Ubuntu — binary deployment, systemd unit, monitoring port, authentication file, and the operational defaults an MSP runs on day one.
- Mosquitto MQTT broker setup — TLS, auth, and persistence on Ubuntu Standing up Mosquitto as an MQTT broker on Ubuntu — listeners, password auth, TLS via Let's Encrypt, persistent sessions, and the operational defaults an MSP applies.
- Celery on Django with Redis — worker, beat, and the production checklist Wiring Celery into a Django app with Redis as broker and result backend — task classes, queues, worker, beat scheduler, and the systemd units an MSP applies.
- Mosquitto MQTT cluster bridging — connecting two brokers without a cluster mode Bridging Mosquitto brokers for HA or multi-site MQTT — bridge directions, topic mapping, durability, and the operational pattern that replaces a real cluster.
- Kafka Connect — running a source and a sink connector in production Standing up a Kafka Connect cluster, deploying a source connector and a sink connector, and the operational pieces — offsets, status, restarts — an MSP wires from day one.
- BullMQ on Node.js — Redis-backed queues, workers, and the production checklist Standing up BullMQ on Node.js with Redis as the backend — queue, worker, job options, retries, repeat jobs, and the operational defaults an MSP applies.