Repository navigation
Replies: 5 comments 1 reply
|
i can not found any answer from the help doc, i try the "parallel" component, but can not take effect. how should i do? |
|
Hey @lizhe19, messages need to be batched if you want the LE: Transferring this to a discussion as per #2026. |
|
你好...谢谢你的邮件 我已收到!
|
|
@mihaitodor , i am sorry i think u do not understand my requirement. my requirement is how to call this message concurrently to two different interfaces? |
|
你好...谢谢你的邮件 我已收到!
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
input:
generate:
mapping: root = {"reqCode":"123456","data":"info"}
interval: 0s
count: 1
pipeline:
processors:
- mapping: |
meta start = timestamp_unix_milli()
- log:
level: INFO
message: 'once requet record start time:${!now().ts_format("2006-01-02 15:04:05")}'
- parallel:
cap: 0
processors:
- branch:
processors:
- http:
headers:
Content-Type: application/json; charset=UTF-8
TEST: test
url: http://172.32.6.25:9357/test/http2
verb: POST
timeout: 30s
parallel: true
- catch:
- log:
level: ERROR
message: "request execption,request body=${!content()}"
- branch:
processors:
- http:
headers:
Content-Type: application/json; charset=UTF-8
TEST: test
url: http://172.32.6.25:9357/test/http3
verb: POST
timeout: 30s
parallel: true
- catch:
- log:
level: ERROR
message: "request execption,request body=${!content()}"
- log:
level: INFO
message: 'once request used time total:${!(timestamp_unix_milli() - metadata("start"))}ms'
output:
stdout: {}
All reactions