-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
58 lines (57 loc) · 1.04 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'use strict'
module.exports = {
RABBIT_MQ: 'amqp://guest:guest@localhost:5672/%2f',
EX: {
name: 'company.e.whatever-exchange',
type: 'topic',
options: {
durable: false,
alternateExchange: 'company.e.alternate-exchange'
}
},
ALTERNATE_EXCHANGE: {
name: 'company.e.alternate-exchange',
type: 'fanout',
options: {
durable: false
}
},
DELAYED_EX: {
name: 'company.e.delayed-exchange',
type: 'x-delayed-message',
options: {
durable: true,
arguments: {
'x-delayed-type': 'fanout'
}
}
},
DLX_EX: {
name: 'company.e.dlx',
type: 'fanout',
options: {
durable: true
}
},
QUEUE: {
name: 'comapny.q.whatever-queue',
options: {
durable: true,
arguments: {
'x-dead-letter-exchange': 'company.e.dlx'
}
}
},
ALTERNATE_QUEUE: {
name: 'company.q.alternate-queue',
options: {
durable: false
}
},
DLX_QUEUE: {
name: 'company.q.dlq',
options: {
exclusive: false
}
}
}