Queues

Get Started with Queues in KubeMQ

Connect Your KubeMQ Cluster

To be able to communicate with KubeMQ interface ports running in Kubernetes cluster, a Port Forward of KubeMQ's ports is needed.

kubemqctl has a handy command that will do it for you:

kubemqctl set cluster proxy

Send a Queue Message

The producer can send a message to the "hello-world-queue" channel with one of the following methods.

Run the following kubemqctl command:

kubemqctl queues send "hello-world-queue" "this is a queue message"

A result message will be shown with an indication of the sending time of the message.

Receive a Queue Message

After you have sent a message to a queue, you can request the message from a queue.

Run the following kubemqctl command:

kubemqctl queues receive "hello-world-queue"

Get Queues information You can get Queues information by running kubemqctl queues list

Last updated