Queue
KubeMQ Bridges Queue target provides a queue sender for processing sources requests.

Prerequisites

The following are required to run the queue target connector:
  • kubemq cluster
  • kubemq-bridges deployment

Configuration

Queue target connector configuration properties:
Properties Key
Required
Description
Example
address
yes
kubemq server address (gRPC interface)
kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000
client_id
no
set client id
"client_id"
auth_token
no
set authentication token
JWT token
channels
no
set array of channels values to send the event
"queue.a,queue.b,queue.c"
expiration_seconds
no
set default expiration seconds for each queue message
0 - default, no expiration
delay_seconds
no
set default delay seconds for each queue message
0 - default, no delay
max_receive_count
no
set how many failed queue messages before routes to dead-letter queue
0 - default, no routes to dead-letter queue
dead_letter_queue
no
set dead-letter queue
"dead-letter.queue.a"
Example:
1
bindings:
2
- name: queue-binding
3
properties:
4
log_level: error
5
retry_attempts: 3
6
retry_delay_milliseconds: 1000
7
retry_max_jitter_milliseconds: 100
8
retry_delay_type: "back-off"
9
rate_per_second: 100
10
sources:
11
.....
12
targets:
13
kind: target.queue # Sources kind
14
name: 3-clusters-targets # targets name
15
connections: # Array of connections settings per each target kind
16
- address: "kubemq-cluster-a-grpc.kubemq.svc.cluster.local:50000"
17
client_id: "cluster-a-queue-connection"
18
auth_token: ""
19
channels: "queue.a,queue.b,queue.c"
20
expiration_seconds: 0
21
delay_seconds: 0
22
max_receive_count: 3
23
dead_letter_queue: "dead-letter.queue.a"
24
- address: "kubemq-cluster-b-grpc.kubemq.svc.cluster.local:50000"
25
client_id: "cluster-b-queue-connection"
26
auth_token: ""
27
channels: "queue.a,queue.b,queue.c"
28
expiration_seconds: 0
29
delay_seconds: 0
30
max_receive_count: 3
31
dead_letter_queue: "dead-letter.queue.b"
32
- address: "kubemq-cluster-c-grpc.kubemq.svc.cluster.local:50000"
33
client_id: "cluster-c-queue-connection"
34
auth_token: ""
35
channels: "queue.a,queue.b,queue.c"
36
expiration_seconds: 0
37
delay_seconds: 0
38
max_receive_count: 3
39
dead_letter_queue: "dead-letter.queue.c"
Copied!
Last modified 11mo ago