SmallRye Reactive Messaging : Connector :: HTTP

An implementation of the MicroProfile Reactive Streams Messaging specification

License

License

Categories

Categories

React User Interface Web Frameworks Messaging Application Layer Libs
GroupId

GroupId

io.smallrye.reactive
ArtifactId

ArtifactId

smallrye-reactive-messaging-http
Last Version

Last Version

2.9.0
Release Date

Release Date

Type

Type

jar
Description

Description

SmallRye Reactive Messaging : Connector :: HTTP
An implementation of the MicroProfile Reactive Streams Messaging specification
Project Organization

Project Organization

SmallRye

Download smallrye-reactive-messaging-http

How to add to project

<!-- https://jarcasting.com/artifacts/io.smallrye.reactive/smallrye-reactive-messaging-http/ -->
<dependency>
    <groupId>io.smallrye.reactive</groupId>
    <artifactId>smallrye-reactive-messaging-http</artifactId>
    <version>2.9.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.smallrye.reactive/smallrye-reactive-messaging-http/
implementation 'io.smallrye.reactive:smallrye-reactive-messaging-http:2.9.0'
// https://jarcasting.com/artifacts/io.smallrye.reactive/smallrye-reactive-messaging-http/
implementation ("io.smallrye.reactive:smallrye-reactive-messaging-http:2.9.0")
'io.smallrye.reactive:smallrye-reactive-messaging-http:jar:2.9.0'
<dependency org="io.smallrye.reactive" name="smallrye-reactive-messaging-http" rev="2.9.0">
  <artifact name="smallrye-reactive-messaging-http" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.smallrye.reactive', module='smallrye-reactive-messaging-http', version='2.9.0')
)
libraryDependencies += "io.smallrye.reactive" % "smallrye-reactive-messaging-http" % "2.9.0"
[io.smallrye.reactive/smallrye-reactive-messaging-http "2.9.0"]

Dependencies

compile (8)

Group / Artifact Type Version
io.vertx : vertx-web-client jar
io.smallrye.reactive : smallrye-mutiny-vertx-web-client jar 1.5.0
io.vertx : vertx-web jar
io.smallrye.reactive : smallrye-reactive-messaging-provider jar 2.9.0
io.smallrye.reactive : smallrye-reactive-messaging-cloud-events jar 2.9.0
org.jboss.logging : jboss-logging jar 3.4.1.Final
io.smallrye.reactive : smallrye-reactive-converter-api jar 1.5.0
io.smallrye.reactive : mutiny jar 0.14.0

provided (3)

Group / Artifact Type Version
io.smallrye.reactive : smallrye-connector-attribute-processor jar 2.9.0
org.jboss.logging : jboss-logging-annotations jar 2.2.1.Final
org.jboss.logging : jboss-logging-processor jar 2.2.1.Final

test (15)

Group / Artifact Type Version
com.github.tomakehurst : wiremock jar 2.27.2
io.rest-assured : rest-assured jar 4.3.3
io.smallrye.config : smallrye-config jar 1.10.0
org.jboss.weld.se : weld-se-core jar 3.1.6.Final
io.smallrye.reactive : mutiny-reactive-streams-operators jar 0.14.0
io.smallrye.reactive : smallrye-reactive-converter-rxjava2 jar 1.5.0
io.smallrye.reactive : smallrye-reactive-converter-reactor jar 1.5.0
io.smallrye.reactive : smallrye-reactive-converter-mutiny jar 1.5.0
org.junit.jupiter : junit-jupiter jar 5.7.1
org.junit.jupiter : junit-jupiter-api jar 5.7.1
org.assertj : assertj-core jar 3.19.0
org.awaitility : awaitility jar 4.0.3
org.mockito : mockito-all jar 1.10.19
org.junit-pioneer : junit-pioneer jar 1.3.8
org.junit.platform : junit-platform-commons jar 1.7.1

Project Modules

There are no modules declared in this project.

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 - 2.x development stream. Uses Vert.x 3.x and Microprofile 3.x
  • 3.x - 3.x development stream. Users Vert.x 4.x and Microprofile 4.x

Getting started

Prerequisites

See PREREQUISITES.md for details.

The build process requires Apache Maven and Java 8+ 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 javax.enterprise.context.ApplicationScoped;
import javax.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.

io.smallrye.reactive

SmallRye

Versions

Version
2.9.0
2.8.0
2.7.1
2.7.0
2.6.1
2.6.0
2.5.0
2.4.0
2.3.0
2.2.1
2.2.0
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.0
1.0.8
1.0.7
1.0.6
1.0.4
1.0.3
1.0.2
1.0.1
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2