Skip to content

cdbennett/amqprs-reconnect-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amqp-rs connection loss and reconnecting example

Real applications will want to be robust and somehow handle the case where a RabbitMQ broker is restarted or the connection is lost and then restored.

Without handling this situation, applications are fragile and could be broken at any time and unless there is monitoring infrastructure in place, it would not even be noticed immediately. The application would simply lose its connection to the RabbitMQ server indefinitely, until the client program was manually restarted.

This is an attempt to demonstrate how to implement production-grade applications with amqp-rs by implementing robust connection management.

Running the example

Start RabbitMQ server

Using a Docker container for simplicity and isolation.

docker run -d --name 

About

Example of amqp-rs connection loss and reconnecting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages