Spring系列学习之Spring Cloud Stream App Starters 应用程序启动器

英文原文:https://cloud.spring.io/spring-cloud-stream-app-starters/

目录

Spring Cloud Stream App Starters

特性

可用应用

快速开始

使用Spring Boot 1.5.x + Spring Cloud Stream 1.3.x:

使用Spring Boot 2.0.x + Spring Cloud Stream 2.0.x:

使用Spring Boot 2.1.x + Spring Cloud Stream 2.1.x:

HTTP Repository Location for Apps

RabbitMQ Apps

Apache Kafka Apps

发布版本

相关项目


Spring Cloud Stream App Starters

Spring Cloud Stream Application Starters是基于Spring BootSpring Integration应用程序,可提供与外部系统的集成。 Spring Cloud Stream应用程序可与Spring Cloud Data Flow一起使用,以创建,部署和编排消息驱动的微服务应用程序。

Spring Cloud Stream Application Starters是独立的可执行应用程序,可通过Apache Kafka和RabbitMQ等消息传递中间件进行通信。 这些应用程序可以在各种运行时平台上独立运行,包括:Cloud Foundry,Apache Yarn,Apache Mesos,Kubernetes,Docker,甚至可以在您的笔记本电脑上运行。

特性

  •      独立运行作为Spring Boot应用程序
  •      将微服务组合为Spring Cloud Data Flow中的流管道
  •      将微服务应用程序用作maven或docker工件
  •      通过命令行,环境变量或YAML文件覆盖配置参数
  •      提供基础架构以单独测试应用程序
  •      从此版本的Spring Initializr下载为初学者


可用应用

SourceProcessorSink
fileaggregatoraggregate-counter
ftpbridgecassandra
gemfirefiltercounter
gemfire-cqgroovy-filterfield-value-counter
httpgroovy-transformfile
jdbcheader-enricherftp
jmshttpclientgemfire
load-generatorpmmlgpfdist
loggregatorpython-httphdfs
mailpython-jythonhdfs-dataset
mongodbscriptable-transformjdbc
mqttsplitterlog
rabbittasklaunchrequest-transformmongodb
s3tcp-clientmqtt
sftptensorflowpgcopy
syslogtransformrabbit
tcptwitter-sentimentredis-pubsub
tcp-clientgrpcrouter
time s3
trigger sftp
triggertask task-launcher-cloudfoundry
twitterstream task-launcher-local
  task-launcher-dataflow
  task-launcher-yarn
  tcp
  throughput
  websocket

 

快速开始


第1步 - 从这里下载最新的基于Kafka 10的时间源应用程序[例如:/1.3.0.RELEASE/time-source-kafka-10-1.3.0.RELEASE.jar]

第2步 - 从这里下载最新的基于Kafka 10的日志接收器应用程序[例如:/1.3.0.RELEASE/log-sink-kafka-10-1.3.0.RELEASE.jar]

第3步 - 启动Kafka 0.10.1.1

第4步 - 运行时间源并绑定到ticktock主题

java -jar time-source-kafka-***.jar --spring.cloud.stream.bindings.output.destination=ticktock

第5步 - 运行Log Sink并绑定到ticktock主题

java -jar log-sink-kafka-***.jar --spring.cloud.stream.bindings.input.destination=ticktock

第6步- 在控制台中验证ticktock日志
流应用程序启动器和Spring云数据流(**)


使用Spring Boot 1.5.x + Spring Cloud Stream 1.3.x:

Artifact TypeStable ReleaseSnapshot/Milestone Release
RabbitMQ + Mavenhttp://bit.ly/Celsius-SR3-stream-applications-rabbit-mavenhttp://bit.ly/Celsius-BUILD-SNAPSHOT-stream-applications-rabbit-maven
RabbitMQ + Dockerhttp://bit.ly/Celsius-SR3-stream-applications-rabbit-dockerhttp://bit.ly/Celsius-BUILD-SNAPSHOT-stream-applications-rabbit-docker
Apache Kafka 0.10 + Mavenhttp://bit.ly/Celsius-SR3-stream-applications-kafka-10-mavenhttp://bit.ly/Celsius-BUILD-SNAPSHOT-stream-applications-kafka-10-maven
Apache Kafka 0.10 + Dockerhttp://bit.ly/Celsius-SR3-stream-applications-kafka-10-dockerhttp://bit.ly/Celsius-BUILD-SNAPSHOT-stream-applications-kafka-10-docker

使用Spring Boot 2.0.x + Spring Cloud Stream 2.0.x:

Artifact TypeStable ReleaseSnapshot/Milestone Release
RabbitMQ + Mavenhttp://bit.ly/Darwin-SR3-stream-applications-rabbit-mavenhttp://bit.ly/Darwin-BUILD-SNAPSHOT-stream-applications-rabbit-maven
RabbitMQ + Dockerhttp://bit.ly/Darwin-SR3-stream-applications-rabbit-dockerhttp://bit.ly/Darwin-BUILD-SNAPSHOT-stream-applications-rabbit-docker
Apache Kafka + Mavenhttp://bit.ly/Darwin-SR3-stream-applications-kafka-mavenhttp://bit.ly/Darwin-BUILD-SNAPSHOT-stream-applications-kafka-maven
Apache Kafka + Dockerhttp://bit.ly/Darwin-SR3-stream-applications-kafka-dockerhttp://bit.ly/Darwin-BUILD-SNAPSHOT-stream-applications-kafka-docker

使用Spring Boot 2.1.x + Spring Cloud Stream 2.1.x:

Artifact TypeMilestone ReleaseSnapshot Release
RabbitMQ + Mavenhttp://bit.ly/Einstein-M1-stream-applications-rabbit-mavenhttp://bit.ly/Einstein-BUILD-SNAPSHOT-stream-applications-rabbit-maven
RabbitMQ + Dockerhttp://bit.ly/Einstein-M1-stream-applications-rabbit-dockerhttp://bit.ly/Einstein-BUILD-SNAPSHOT-stream-applications-rabbit-docker
Apache Kafka + Mavenhttp://bit.ly/Einstein-M1-stream-applications-kafka-mavenhttp://bit.ly/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-maven
Apache Kafka + Dockerhttp://bit.ly/Einstein-M1-stream-applications-kafka-dockerhttp://bit.ly/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-docker

 (**)通过查看参考指南中的应用程序注册部分,了解如何在Spring Cloud Data Flow中使用app-starters

HTTP Repository Location for Apps

RabbitMQ Apps

With Spring Boot 1.5.x:

With Spring Boot 2.0.x:

Apache Kafka Apps

With Spring Boot 1.5.x:

With Spring Boot 2.0.x:

With Spring Boot 2.1.x:

 

发布版本

Spring Cloud Stream App Starters

Release

Documentation

Einstein M1

Reference API

Einstein

Reference API

Darwin SR3

Reference API

Darwin

Reference API

Celsius SR3

Reference API

相关项目

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值