DEAD-LETTER EXCHANGE

and how to use it to implement delayed retry

the problem

  • Dealing with shoddy WePay API
    • Timeout/Unknown error
    • Transaction may or may not be captured

solution1 - wishing

Solution 2

idempotency

 

being able to make the same call repeatedly

while producing the same result

Title Text

what it looks like

we still need to:

- retry

           - time delay

prior art:

repeater

  • time.sleep
  • block sparkplug process
  • sparkplug forks more process

:(

dead-letter exchange

  • AMQP protocol extension
  • Set as a header when declaring the queue
  • Can be used together with a dead-letter-routing-key

message-ttl

  • AMQP extension
  • How long should a message stay in the queue
  • Can be applied to queue or message

Dead Letter Exchange

By Kevin Jing Qiu

Dead Letter Exchange

  • 1,053