QuestionQ32

VerifiedManaging APIs and integrations

A company is developing an integration Mule application to process orders by sending them to a back-end system for offline processing. Each order will arrive at the Mule application through an HTTPS POST and must receive an immediate acknowledgment. After acknowledgment, the order will be submitted to a back-end system. Orders that cannot be submitted successfully because the back-end system rejects them will need to be processed manually (outside the back-end system).

The Mule application will be deployed to a customer-hosted runtime and can use an existing ActiveMQ broker if necessary. The ActiveMQ broker is located within the organization’s firewall. The back-end system has a history of unreliability due to both minor network-connectivity problems and longer outages.

What combination of Mule application components and ActiveMQ queues is required to ensure automatic order submission to the back-end system while supporting, but minimizing, manual order processing?

Explanation

An ActiveMQ queue decouples immediate HTTP acknowledgment from later processing and durably retains orders during back-end outages. An Until Successful scope retries the outbound back-end submission when a transient connectivity failure occurs. Configured ActiveMQ long-retry queues allow retries across prolonged outages without holding request-processing threads, while ActiveMQ dead-letter queues retain orders that remain unsuccessful for manual processing. MuleSoft documents that Until Successful retries an outbound operation until it succeeds or exhausts its configured retries, and that ActiveMQ/JMS supports redelivery and dead-letter queues for messages that cannot be processed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!