• Stars
    star
    239
  • Rank 168,733 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 6 years ago
  • Updated 12 days ago

Reviews

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

Repository Details

SmallRye Reactive Messaging

Maven Central Continuous Integration Build License

Implementation of the MicroProfile Reactive Messaging specification

This project is an implementation of the (next to be) Eclipse MicroProfile Reactive Messaging specification - a CDI extension to build event-driven microservices and data streaming applications. It provides support for:

It also provides a way to inject streams into CDI beans, and so link your Reactive Messaging streams into CDI beans,or JAX-RS resources.

Branches

  • main - 4.x development stream. Uses Vert.x 4.x, Microprofile 5.x, Mutiny 2.x and Jakarta 9
  • 3.x - Previous development stream. Uses Vert.x 4.x and Microprofile 4.x
  • 2.x - Not under development anymore. Uses Vert.x 3.x and Microprofile 3.x

Getting started

Prerequisites

See PREREQUISITES.md for details.

The build process requires Apache Maven and Java 11+ and can be performed using:

mvn clean install

How to start

The best way to start is to look at the examples/quickstart project. It's a Maven project listing the minimal set of dependencies and containing a single class:

package io.smallrye.reactive.messaging.quickstart;

import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.eclipse.microprofile.reactive.messaging.Outgoing;
import org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder;
import org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams;

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.se.SeContainerInitializer;

@ApplicationScoped
public class QuickStart {

  public static void main(String[] args) {
    SeContainerInitializer.newInstance().initialize();
  }


  @Outgoing("source")
  public PublisherBuilder<String> source() {
    return ReactiveStreams.of("hello", "with", "SmallRye", "reactive", "message");
  }

  @Incoming("source")
  @Outgoing("processed-a")
  public String toUpperCase(String payload) {
    return payload.toUpperCase();
  }

  @Incoming("processed-a")
  @Outgoing("processed-b")
  public PublisherBuilder<String> filter(PublisherBuilder<String> input) {
    return input.filter(item -> item.length() > 4);
  }

  @Incoming("processed-b")
  public void sink(String word) {
    System.out.println(">> " + word);
  }

}

Run the project with: mvn compile exec:java -Dexec.mainClass=io.smallrye.reactive.messaging.quickstart.QuickStart:

>> HELLO
>> SMALLRYE
>> REACTIVE
>> MESSAGE

Built With

Contributing

Please read CONTRIBUTING.md for details, and the process for submitting pull requests.

Sponsors

The project is sponsored by Red Hat.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

More Repositories

1

smallrye-mutiny

An Intuitive Event-Driven Reactive Programming Library for Java
Java
813
star
2

jandex

Java Annotation Indexer
Java
394
star
3

smallrye-graphql

Implementation for MicroProfile GraphQL
Java
159
star
4

smallrye-config

SmallRye Config - A Java Configuration library
Java
157
star
5

smallrye-open-api

SmallRye implementation of Eclipse MicroProfile OpenAPI
Java
115
star
6

smallrye-fault-tolerance

SmallRye implementation of MicroProfile Fault Tolerance: bulkheads, circuit breakers, fallbacks, rate limits, retries, timeouts, and more
Java
85
star
7

smallrye-mutiny-vertx-bindings

Smallrye Mutiny bindings for Eclipse Vert.x
Java
82
star
8

smallrye-stork

SmallRye Stork is a service discovery and client side-load balancing framework.
Java
76
star
9

smallrye-jwt

Java
75
star
10

smallrye-health

Java
52
star
11

smallrye-metrics

Java
39
star
12

smallrye-context-propagation

SmallRye implementation of MicroProfile Context Propagation
Java
30
star
13

smallrye-common

Common utilities for SmallRye
Java
21
star
14

smallrye-opentelemetry

SmallRye OpenTelemetry - A CDI and Jakarta REST implementation of OpenTelemetry Tracing
Java
21
star
15

smallrye-reactive-streams-operators

Implementation of the MicroProfile Reactive Streams Operators specification
Java
20
star
16

smallrye-opentracing

An MicroProfile-OpenTracing implementation
Java
19
star
17

smallrye-mutiny-zero

Zero-dependency Reactive Streams publishers library
Java
17
star
18

smallrye-async-api

Java
7
star
19

smallrye-event-sourcing

7
star
20

smallrye-llm

Experimentation around LLM and MicroProfile
Java
7
star
21

smallrye-rest-client

Implementation has been moved to https://github.com/resteasy/Resteasy/tree/master/resteasy-client-microprofile
Java
7
star
22

smallrye-graphql-client-intellij-plugin

Kotlin
5
star
23

smallrye-parent

Maven Parent POM
4
star
24

smallrye-beanbag

A simple programmatic bean container with support for creating a Maven resolver via integration with Eclipse SISU.
Java
3
star
25

smallrye-safer-annotations

Safer annotation constraints
Java
3
star
26

smallrye-antora-ui

Antora UI for the SmallRye documentation
CSS
2
star
27

smallrye-reactive-converters

Java
2
star
28

smallrye-testing

Testing utilities for all SmallRye projects
Java
1
star
29

smallrye-bom

1
star
30

smallrye-opentelemetry-sdk

Java
1
star
31

smallrye-jose

1
star
32

smallrye-converters

Java
1
star
33

smallrye-aesh

1
star
34

smallrye

SmallRye repo to handle cross projects work
1
star
35

smallrye-certificate-generator

Utilities to generated signed and self-signed certificates
Java
1
star