benthos 通过配置文件配置 stream 说明

stream 模式,我们也可以通过配置文件进行配置

参考配置文件

input:
type: http_server
buffer:
type: memory
pipeline:
threads: 4
processors:
- type: jmespath
jmespath:
query: "{id: user.id, content: body.content}"
output:
type: http_server

启动

使用安装包自带目录,mystream 拷贝了http 的几个配置

 ./benthos --streams --streams-dir ./mystream

查询注册

benthos 通过配置文件配置 stream 说明

参考资料

https://github.com/Jeffail/benthos/blob/8f0d09a80569a09fcc424da1f95d96ef8ceb484b/docs/streams/using_config_files.md

 
 
 
 
上一篇:MySQL 一对多查询


下一篇:Enterprise Architect13 : 去掉UML图页面右侧那一道竖线