-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodule.yaml
65 lines (61 loc) · 2.17 KB
/
module.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
version: "1.0"
module:
meta:
type: remote
spec:
functions:
- function:
meta:
kind: http
type: ycsb-example/account_function
spec:
endpoint: http://account-function:80/statefun
states:
- state
maxNumBatchRequests: 500
timeout: 5min
- function:
meta:
kind: http
transaction: sagas
type: ycsb-example/transfer_function
spec:
endpoint: http://transfer-function:80/statefun
maxNamBatchRequests: 500
timeout: 2min
ingresses:
- ingress:
meta:
type: statefun.kafka.io/routable-protobuf-ingress
id: python-example/kafka-ingress
spec:
address: kafka-cluster-kafka-bootstrap:9092
consumerGroupId: statefun
topics:
- topic: insert
typeUrl: com.googleapis/yscb_example.messages.Wrapper
targets:
- ycsb-example/account_function
- topic: read
typeUrl: com.googleapis/yscb_example.messages.Wrapper
targets:
- ycsb-example/account_function
- topic: update
typeUrl: com.googleapis/yscb_example.messages.Wrapper
targets:
- ycsb-example/account_function
- topic: transfer
typeUrl: com.googleapis/yscb_example.messages.Wrapper
targets:
- ycsb-example/transfer_function
egresses:
- egress:
meta:
type: statefun.kafka.io/generic-egress
id: ycsb-example/kafka-egress
spec:
address: kafka-cluster-kafka-bootstrap:9092
deliverySemantic:
type: exactly-once
transactionTimeoutMillis: 100000
transactionTimeoutMillis: 100000