Try CoAkka Runtime when you use RabbitMQ

A pricing request can pass through a RabbitMQ queue or go directly to the handler through CoAkka Runtime. See what each signal tells you and when to keep the queue.

Two paths for one pricing request

RabbitMQ · RPC
Checkout → RabbitMQ exchange → quote-requests queue → pricing workerReply: worker → reply queue → checkout
CoAkka Runtime · Peer
Checkout → samples.order.quote target → pricing peerReply: CoAkka Runtime matches the quote to the waiting request

Both paths use the same basket data. On the RabbitMQ path, the publisher can receive a confirm while the worker is offline. The quote arrives after the worker processes the request and sends a reply. The table uses an RPC with a reply queue and manual consumer ACKs.

What you need to know RabbitMQ CoAkka Runtime
Find a handler The exchange uses routing keys and queue bindings to route the message. Workers can share a queue. The caller names the work. CoAkka Runtime selects one eligible destination from the target’s route.
Sender gets an acceptance signal A publisher confirm reports how RabbitMQ handled the publish. Check separately that the message reached a queue as intended. CoAkka Runtime admits the request or refuses it, for example when its queue is full. Admission puts the request on the runtime delivery path.
Worker acknowledges the delivery A consumer ACK tells the broker it can remove the delivery from the queue. The application chooses when to ACK based on what counts as completed work. The handler returns the business result. The caller follows the outcome of the request sent to the target.
Caller receives the quote The worker sends a quote via reply_to. The caller uses correlation_id to match the quote to the request. CoAkka Runtime matches the reply to the request. The caller may see a quote, a business rejection, a Deadletter, or a timeout.
Worker stops The queue can hold work until a worker returns. Survival across a broker restart depends on queue and message settings. This call waits within its deadline. The application needs separate durable storage when work must survive an application restart.
When a publish is confirmed without a matching queue

RabbitMQ can confirm an unroutable publish. With AMQP 0-9-1, a publish marked mandatory returns an unroutable message using basic.return. Check both signals. If the work must survive a restart, also check the queue’s durability and the message’s persistence settings.

What DLQ and Deadletter tell you

RabbitMQ DLX and DLQ
For example, the worker rejects a message with requeue=false. If a dead-letter exchange (DLX) is configured, RabbitMQ republishes the message there. A matching binding can route it to a dead-letter queue (DLQ) for inspection. With AMQP 0-9-1, check x-death for the source queue and reason.
CoAkka Runtime Deadletter
The caller can receive a Deadletter with the reason and original payload. For example, if an admitted request returns ROUTE_MISS, check the target to find the missing route. If operators need to handle the request later, the app records it in its chosen durable store.

When to keep RabbitMQ

Try switching one call

  1. Record the RabbitMQ outcome. Use a fixed basket and follow the publish, confirm, ACK, and quote. Stop the worker, send a request, and start it again to see when the queue holds work.
  2. Run the CoAkka Runtime path. The Node.js and Python sample returns USD 48.00 for the sample basket. Use your current RabbitMQ path for comparison and give both paths the same input in your test environment.
  3. Compare failure cases before switching. Check a missing route, a stopped worker, and a reply that arrives after the deadline. For operations that change data, reconcile the work ID before resending. Keep RabbitMQ available for rollback.
Source documentation