Can I stop messages from being forwarded to an offline AMQP client?

Updated at:

No. If an AMQP client goes offline, a message backlog forms for the server-side subscription. When the client reconnects, IoT Platform automatically redelivers the backlogged messages.

  • To discard the accumulated messages, you can clear the message backlog in the IoT Platform console before the AMQP client reconnects. For detailed instructions, see Clear accumulated messages. On the consumer group details page, under the Consumer group status tab, you can view the message backlog and click Clear.

  • To stop the AMQP client from consuming device messages for a product, you can delete its subscription on the Message forwarding > Server-side subscription page in the IoT Platform console. For detailed instructions, see Manage server-side subscriptions.

    In the subscription list, find the subscription for the target product, and in the Actions column, click Delete.

Related documents

AMQP client connection: Learn about the message policies, sequencing, and acknowledgment mechanisms that govern how AMQP clients receive device messages.