Example of guaranteed delivery on an API using AMQP and a Database