-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kafka.yaml
163 lines (162 loc) · 4.51 KB
/
Kafka.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
asyncapi: 2.1.0
info:
version: '22'
title: Kafka
x-channel-name: "/Channels/KafkaChannel"
channels:
be_kafka_topic:
publish:
operationId: Channels_KafkaChannel_orderDest
message:
"$ref": "#/components/messages/OrderEvent"
x-dest-properties:
compression.type: none
sync.sender: 'true'
session.timeout.msec: '30000'
group.id: be_group
autocommit.interval: '5000'
IncludeEventType: ALWAYS
message.key.rf: "/RuleFunctions/OrderKeyRF"
sync.sender.max.wait: '30000'
serializer-deserializer-class: com.tibco.cep.driver.kafka.serializer.KafkaMapSerializer
enable.autocommit: 'true'
topic.name: be_kafka_topic
heartbeat.interval.msec: '3000'
consumer.threads: '1'
be_kafka_topic_customer:
publish:
operationId: Channels_KafkaChannel_customerSignup
message:
"$ref": "#/components/messages/CustomerSignup"
x-dest-properties:
compression.type: none
sync.sender: 'false'
session.timeout.msec: '30000'
group.id: be_group
autocommit.interval: '5000'
IncludeEventType: ALWAYS
sync.sender.max.wait: '30000'
serializer-deserializer-class: com.tibco.cep.driver.kafka.serializer.KafkaJsonSerializer
enable.autocommit: 'true'
topic.name: be_kafka_topic_customer
heartbeat.interval.msec: '3000'
consumer.threads: '1'
servers:
default:
url: localhost:9092
protocol: Kafka
x-config-properties:
kafka.security.protocol: PLAINTEXT
kafka.sasl.mechanism: PLAIN
async.server.url.property: kafka.broker.urls
kafka.broker.urls: localhost:9092
async.channelName.property: topic.name
components:
schemas:
ConceptRef_:
type: object
properties:
ref:
type: string
historyPolicy: 0
historySize: 0
OrderItem:
properties:
item_name:
type: string
historyPolicy: 0
historySize: 0
price:
type: number
format: double
historyPolicy: 0
historySize: 0
quantity:
type: integer
format: int32
historyPolicy: 0
historySize: 0
Order:
type: object
properties:
items:
type: array
items:
"$ref": "#/components/schemas/OrderItem"
historyPolicy: 0
historySize: 0
x-conceptPath: "/Concepts/OrderItem"
x-event-payloadtype: CEPT_REF
OrderEvent:
type: object
properties:
payload:
properties:
Order:
type: object
"$ref": "#/components/schemas/Order"
historyPolicy: 0
historySize: 0
x-conceptPath: Order
x-event-payloadtype: CEPT_REF
x-nameSpace: www.tibco.com/be/ontology/Concepts/Order
customer_id:
type: string
order_id:
type: string
Customer:
type: object
properties:
name:
type: string
historyPolicy: 0
historySize: 0
age:
type: integer
format: int32
historyPolicy: 0
historySize: 0
address:
type: string
historyPolicy: 0
historySize: 0
CustomerSignup:
type: object
properties:
payload:
properties:
Customer:
type: object
"$ref": "#/components/schemas/Customer"
historyPolicy: 0
historySize: 0
x-conceptPath: Customer
x-event-payloadtype: CEPT_REF
x-nameSpace: www.tibco.com/be/ontology/Concepts/Customer
ref_code:
type: string
messages:
OrderEvent:
payload:
"$ref": "#/components/schemas/OrderEvent"
examples:
- john:
summary: Example for John Doe user
headers:
content-type: application/json
sentAt: "2020-03-11T08:03:38Z"
payload:
customer_id: john
order_id: 1001
- Bob:
summary: Example for John Doe user
headers:
content-type: application/json
sentAt: "2020-03-11T08:03:38Z"
payload:
customer_id: CUST_5
order_id: 1001
CustomerSignup:
payload:
"$ref": "#/components/schemas/CustomerSignup"