Should I gracefully close rabbitmq client application ?

501 views
Skip to first unread message

Yury Kozlov

unread,
Mar 30, 2021, 10:44:01 AM3/30/21
to rabbitmq-users
According to the docs:
 When an application no longer needs to be connected to the server, it should gracefully close its AMQP 0-9-1 connection instead of abruptly closing the underlying TCP connection.

However when I terminate a golang process with few consumers I immediately see on rabbitmq management that connection automatically disappears and all underlying channels are also closed. Meaning that the broker is able to handle abruptly closed connections.

I wonder if explicitly closing client connections (on SIGTERM, SIGKILL, etc) is mandatory? 
What are possible consequences of abruptly closed clients?

Thanks in advance.

Yury Kozlov

unread,
May 2, 2021, 2:31:59 PM5/2/21
to rabbitmq-users
Just to recap, as per  Connection lifecycle events:  Abruptly closed connections can be harmless.
Reply all
Reply to author
Forward
0 new messages