You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-22Lines changed: 47 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
## omq
2
2
3
-
`omq` is a messaging system client for testing purposes. It currently supports AMQP 1.0, AMQP 0.9.1, STOMP and MQTT 3.1/3.1.1/5.0. It is developed mostly for RabbitMQ but might be useful for other brokers
4
-
as well (some tests against ActiveMQ were performed).
3
+
`omq` is a messaging system client for testing purposes. It currently supports
4
+
AMQP 1.0, AMQP 0.9.1, STOMP and MQTT 3.1/3.1.1/5.0. It is developed mostly for
5
+
RabbitMQ but might be useful for other brokers as well (some tests against
6
+
ActiveMQ were performed).
5
7
6
-
`omq` starts a group of publishers and a group of consumers, in both cases all publishers/consumers are identical,
7
-
except for the target terminus/queue/routing key, which may be slightly different. The publishers can use
8
-
a different protocol than the consumers.
8
+
`omq` starts a group of publishers and a group of consumers. The publishers
9
+
can use a different protocol than the consumers.
9
10
10
11
`omq` has subcommands for all protocol combinations. For example:
will start 10 MQTT publishers, each publishing 1 message a second, with 100 bytes of payload, to the `amq.topic` exchange (default for the MQTT plugin)
24
-
with the topic/routing key of `sensor/%d`, where the `%d` is the ID of the publisher (from 1 to 10). It will also start a single AMQP 1.0 consumer that
25
-
consumes all those messages by declaring a classic queue `sensors` with a wildcard subscription.
24
+
will start 10 MQTT publishers, each publishing 1 message a second, with 100
25
+
bytes of payload, to the `amq.topic` exchange (default for the MQTT plugin)
26
+
with the topic/routing key of `sensor/%d`, where the `%d` is the ID of the
27
+
publisher (from 1 to 10). It will also start a single AMQP 1.0 consumer that
28
+
consumes all those messages by declaring a classic queue `sensors` with a
29
+
wildcard subscription.
26
30
27
-
If the publishing and consuming protocol is the same, you can use abbreviated commands: `amqp` instead of `amqp-amqp`, `stomp` instead of `stomp-stomp`
28
-
and `mqtt` instead of `mqtt-mqtt`.
31
+
If the publishing and consuming protocol is the same, you can use abbreviated
32
+
commands: `amqp` instead of `amqp-amqp`, `stomp` instead of `stomp-stomp`, etc.
29
33
30
34
### Installation
31
35
36
+
#### Binary
37
+
38
+
You can get the latest binary from there [releases page](https://github.com/rabbitmq/omq/releases).
39
+
40
+
#### OCI Image
41
+
42
+
An [OCI image](https://hub.docker.com/r/pivotalrabbitmq/omq/tags) is available: `pivotalrabbitmq/omq`.
43
+
44
+
#### From source
45
+
32
46
```shell
33
47
$ go install github.com/rabbitmq/omq@main
34
48
```
35
49
36
-
An [OCI image](https://hub.docker.com/r/pivotalrabbitmq/omq/tags) is also available: `pivotalrabbitmq/omq`.
50
+
or
51
+
```
52
+
git clone github.com/rabbitmq/omq
53
+
go build
54
+
```
37
55
38
56
### Connecting to the Broker
39
57
@@ -44,7 +62,7 @@ you can use `--uri` instead (but can't mix `--uri` with `--publisher-uri` and `-
44
62
45
63
For example, here both publishers and consumers will connect to either of the 3 URIs:
0 commit comments