Forwarding messages
Tuxedo comes with a TMQFORWARD
server that dequeues a message from the queue and sends it to a service with the same name as the queue. It also uses the number of retries and the interval between retries we configured for the queues to perform retries if the service fails.
We configured the queues to do 3 retries with a 5-second interval. That enables you to create a store and forward solution that works with unreliable destinations and can tolerate temporary network failures or downtime during system upgrades.
Several highly available and reliable systems are built by having persistent request and response queues on the system boundary. Each request is persistent and then processed by the system. If the system fails, the request is retried. Once it succeeds, the request is removed from the queue and the response is persisted. We will use Tuxedo to recreate this solution now.
We start by updating our ubbconfig
file with the highlighted lines:
*RESOURCES...