• Stars
    star
    934
  • Rank 47,230 (Top 1.0 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Samples for Spring Cloud Stream

Spring Cloud Stream Sample Applications

This repository contains a collection of applications written using Spring Cloud Stream. All the applications are self contained. They can be run against either Kafka or RabbitMQ middleware technologies. You have the option of running the samples against local or Docker containerized versions of Kafka and Rabbit. For convenience, docker-compose.yml files are provided as part of each application wherever it is applicable. For this reason, Docker Compose is required and it’s recommended to use the latest version. These compose files bring up the middleware (kafka or Rabbit) and other necessary components for running each app. If you bring up Kafka or RabbitMQ in Docker containers, please make sure that you bring them down while in the same sample directory. You can read the README that is part of each sample and follow along the instructions to run them.

You can build the entire samples by going to the root of the repository and then do: ./mvnw clean package However, the recommended approach to build them is to pick the sample that you are interested in and go to that particular app and follow the instructions there in the README for that app.

Following is the list of various sample applications provided

Source samples

  • Source with dynamic destinations (Kafka and Rabbit)

Processor samples

  • Basic StreamListener sample (Kafka and Rabbit)

  • Transformer sample (Kafka and Rabbit)

  • Reactive processor sample (Kafka and Rabbit)

  • Sensor average calculation using reactive patterns (Kafka and Rabbit)

Multi IO sample

  • Sample with multiple input/output bindings (Kafka and Rabbit)

Multi Binder samples

  • Multi binder - Input with Kafka and output with Rabbit

  • Multi binder - Same binder type but different clusters (Kafka only, but can be extended for Rabbit as well)

Kinesis

  • Kinesis produce consume sample

Kafka Streams samples

A collection of various applications in stream processing using Spring Cloud Stream support for Kafka Streams binding.

  • Kafka Streams word count

  • Kafka Streams branching

  • Kafka Streams DLQ

  • Kafka Streams aggregation

  • Kafka Streams Interactive query basic

  • Kafka Streams Interactive query advanced

  • Kafka Streams product tracker

  • Kafka Streams KTable join

  • Kafka Streams and normal Kafka binder together

Testing samples

  • Sample with embedded Kafka

  • General testing patterns in Spring Cloud Stream

Function-based stream app samples

Contains samples using the re-architected stream-applications and base functions included in https://github.com/spring-cloud/stream-applications.

More Repositories

1

spring-cloud-netflix

Integration with Netflix OSS components
Java
4,843
star
2

spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
Java
4,360
star
3

spring-cloud-kubernetes

Kubernetes integration with Spring Cloud Discovery Client, Configuration, etc...
Java
3,408
star
4

spring-cloud-config

External configuration (server and client) for Spring Cloud
Java
1,923
star
5

spring-cloud-sleuth

Distributed tracing for spring cloud
Java
1,747
star
6

spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Java
1,140
star
7

spring-cloud-dataflow

A microservices-based Streaming and Batch data processing in Cloud Foundry and Kubernetes
Java
1,065
star
8

spring-cloud-function

Java
1,016
star
9

spring-cloud-stream

Framework for building Event-Driven Microservices
Java
960
star
10

spring-cloud-release

Spring Cloud Release Train - dependency management across a wide range of Spring Cloud projects.
856
star
11

spring-cloud-consul

Spring Cloud Consul
Java
799
star
12

spring-cloud-contract

Support for Consumer Driven Contracts in Spring
Java
701
star
13

spring-cloud-commons

Common classes used in different Spring Cloud implementations
Java
689
star
14

spring-cloud-zookeeper

Spring Cloud Zookeeper
Java
542
star
15

spring-cloud-task

Short lived microservices with Spring Batch
Java
415
star
16

spring-cloud-bus

Spring Cloud event bus
Java
399
star
17

spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Java
328
star
18

spring-cloud-circuitbreaker

Spring Cloud Circuit Breaker API and Implementations
Java
320
star
19

spring-cloud-vault

Configuration Integration with HashiCorp Vault
Java
269
star
20

stream-applications

Functions and Spring Cloud Stream Applications for data driven microservices
Java
245
star
21

spring-cloud-dataflow-samples

Sample starter applications and code for use with the Spring Cloud Data Flow project
Java
216
star
22

spring-cloud-dataflow-ui

This repo provides the Dashboard application of Spring Cloud Data Flow
TypeScript
203
star
23

spring-cloud-connectors

Library to let cloud applications connect to services
Java
182
star
24

spring-cloud-build

Common build concerns, shared plugin configuration, etc. for Spring Cloud modules
Shell
181
star
25

spring-cloud-open-service-broker

Spring Cloud project for creating service brokers that conform to the Open Server Broker API specification
Java
160
star
26

spring-cloud-deployer-kubernetes

The Spring Cloud Deployer implementation for Kubernetes
Java
156
star
27

spring-cloud-deployer

The Spring Cloud Deployer project defines an SPI for deploying long lived applications and short lived tasks
Java
156
star
28

spring-cloud-cli

Spring Cloud CLI features
Java
155
star
29

spring-cloud-stream-binder-rabbit

Java
151
star
30

spring-cloud-core-tests

Integration tests for Spring Cloud (small projects testing classpath combinations)
Java
146
star
31

spring-cloud-skipper

A package manager that installs, upgrades, and rolls back Spring Boot applications on multiple Cloud Platforms.
Java
113
star
32

spring-cloud-stream-starters

Shell
98
star
33

spring-cloud-stream-binder-aws-kinesis

Spring Cloud Stream binder for AWS Kinesis
Java
97
star
34

spring-cloud-cloudfoundry

Integration between Cloudfoundry and the Spring Cloud APIs
Java
80
star
35

spring-cloud-schema-registry

A schema registry implementation for Spring Cloud Stream
Java
47
star
36

spring-cloud-jenkins-jobs

Spring Cloud Jenkins Job DSL
Groovy
41
star
37

spring-cloud-bindings

A library that exposes a rich Java language-binding and auto-configuration for CNB Bindings
Java
40
star
38

spring-cloud-deployer-local

The Spring Cloud Deployer implementation for a "local" machine
Java
39
star
39

spring-cloud-release-tools

Tools used for the Spring Cloud release process
Java
28
star
40

spring-cloud-deployer-cloudfoundry

The Spring Cloud Deployer implementation for Cloud Foundry
Java
27
star
41

spring-cloud-app-broker

Spring Cloud project for implementing service brokers that conform to the Open Server Broker API specification
Java
26
star
42

spring-cloud-static

Static resources for the Spring Cloud website
26
star
43

spring-cloud-common-security-config

A common security infrastructure used by Spring Cloud Data Flow and the projects in its ecosystem
Java
19
star
44

spring-cloud-dataflow-acceptance-tests

Java
13
star
45

baseimage

Shell
12
star
46

spring-cloud.github.io

GH pages for spring-cloud
HTML
7
star
47

spring-cloud-dataflow-apps-plugin

Java
7
star
48

stream-applications-acceptance-tests

Shell
7
star
49

spring-functions-catalog

Reusable Spring Functions for data driven microservices
Java
7
star
50

spring-cloud-stream-jenkins-jobs

Groovy
4
star
51

spring-cloud-dataflow-common

Java
2
star
52

.github

2
star
53

spring-cloud-dataflow-build

1
star