{"id":20875256,"url":"https://github.com/smallrye/smallrye-reactive-messaging","last_synced_at":"2026-01-17T16:29:32.291Z","repository":{"id":37689092,"uuid":"153155267","full_name":"smallrye/smallrye-reactive-messaging","owner":"smallrye","description":"SmallRye Reactive Messaging","archived":false,"fork":false,"pushed_at":"2025-04-11T21:05:56.000Z","size":62849,"stargazers_count":248,"open_issues_count":105,"forks_count":184,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-13T00:37:26.690Z","etag":null,"topics":["kafka","messaging","microprofile","reactive"],"latest_commit_sha":null,"homepage":"http://www.smallrye.io/smallrye-reactive-messaging/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smallrye.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-15T17:36:05.000Z","updated_at":"2025-04-10T09:27:42.000Z","dependencies_parsed_at":"2023-10-16T08:39:52.448Z","dependency_job_id":"aa2cb546-fedd-42f3-9861-4f9ff718a687","html_url":"https://github.com/smallrye/smallrye-reactive-messaging","commit_stats":{"total_commits":2984,"total_committers":106,"mean_commits":"28.150943396226417","dds":0.6377345844504021,"last_synced_commit":"902e570491febfae79fee99899859a85f2ceb633"},"previous_names":[],"tags_count":137,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallrye%2Fsmallrye-reactive-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallrye%2Fsmallrye-reactive-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallrye%2Fsmallrye-reactive-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallrye%2Fsmallrye-reactive-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallrye","download_url":"https://codeload.github.com/smallrye/smallrye-reactive-messaging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650414,"owners_count":21139671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kafka","messaging","microprofile","reactive"],"created_at":"2024-11-18T06:43:25.284Z","updated_at":"2026-01-17T16:29:32.244Z","avatar_url":"https://github.com/smallrye.png","language":"Java","funding_links":[],"categories":["进程间通信"],"sub_categories":["Spring Cloud框架"],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/io.smallrye.reactive/smallrye-reactive-messaging)](https://search.maven.org/search?q=a:smallrye-reactive-messaging)\n[![Continuous Integration Build](https://github.com/smallrye/smallrye-reactive-messaging/workflows/Continuous%20Integration%20Build/badge.svg)](https://github.com/smallrye/smallrye-reactive-messaging/actions)\n[![License](https://img.shields.io/github/license/smallrye/smallrye-reactive-messaging.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\n# Implementation of the MicroProfile Reactive Messaging specification\n\nThis project is an implementation of the (next to be) [Eclipse MicroProfile Reactive Messaging](https://github.com/eclipse/microprofile-reactive-messaging) specification - a CDI\nextension to build event-driven microservices and data streaming applications. It provides support for:\n\n* [Apache Kafka](https://kafka.apache.org/)\n* [MQTT](http://mqtt.org/)\n* [AMQP](https://www.amqp.org/) 1.0\n* [Apache Camel](https://camel.apache.org/)\n* And more!\n\nIt also provides a way to inject _streams_ into CDI beans, and so link your [Reactive Messaging streams](https://github.com/eclipse/microprofile-reactive-streams-operators)\ninto [CDI](http://www.cdi-spec.org/) beans,or [JAX-RS](https://github.com/eclipse-ee4j/jaxrs-api) resources.\n\n\n## Branches\n\n* main - 4.x development stream. Uses Vert.x 4.x, Microprofile 5.x, Mutiny 2.x and Jakarta 9\n* 3.x - Previous development stream. Uses Vert.x 4.x and Microprofile 4.x\n* 2.x - Not under development anymore. Uses Vert.x 3.x and Microprofile 3.x\n\n## Getting started\n\n### Prerequisites\n\nSee [PREREQUISITES.md](PREREQUISITES.md) for details.\n\nThe build process requires Apache Maven and Java 11+ and can be performed using:\n\n```bash\nmvn clean install\n```\n\n### How to start\n\nThe best way to start is to look at the `examples/quickstart` project. It's a Maven project listing the minimal set of\ndependencies and containing a single class:\n\n```java\npackage io.smallrye.reactive.messaging.quickstart;\n\nimport org.eclipse.microprofile.reactive.messaging.Incoming;\nimport org.eclipse.microprofile.reactive.messaging.Outgoing;\nimport org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder;\nimport org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams;\n\nimport jakarta.enterprise.context.ApplicationScoped;\nimport jakarta.enterprise.inject.se.SeContainerInitializer;\n\n@ApplicationScoped\npublic class QuickStart {\n\n  public static void main(String[] args) {\n    SeContainerInitializer.newInstance().initialize();\n  }\n\n\n  @Outgoing(\"source\")\n  public PublisherBuilder\u003cString\u003e source() {\n    return ReactiveStreams.of(\"hello\", \"with\", \"SmallRye\", \"reactive\", \"message\");\n  }\n\n  @Incoming(\"source\")\n  @Outgoing(\"processed-a\")\n  public String toUpperCase(String payload) {\n    return payload.toUpperCase();\n  }\n\n  @Incoming(\"processed-a\")\n  @Outgoing(\"processed-b\")\n  public PublisherBuilder\u003cString\u003e filter(PublisherBuilder\u003cString\u003e input) {\n    return input.filter(item -\u003e item.length() \u003e 4);\n  }\n\n  @Incoming(\"processed-b\")\n  public void sink(String word) {\n    System.out.println(\"\u003e\u003e \" + word);\n  }\n\n}\n```\n\nRun the project with: `mvn compile exec:java -Dexec.mainClass=io.smallrye.reactive.messaging.quickstart.QuickStart`:\n\n```bash\n\u003e\u003e HELLO\n\u003e\u003e SMALLRYE\n\u003e\u003e REACTIVE\n\u003e\u003e MESSAGE\n```\n\n## Built With\n\n* [Eclipse Vert.x](https://vertx.io/)\n* [SmallRye Mutiny](https://github.com/smallrye/smallrye-mutiny)\n* [SmallRye Reactive Stream Operators](https://github.com/smallrye/smallrye-reactive-streams-operators) (any implementation would work)\n* [Weld](https://weld.cdi-spec.org/) (any implementation would work)\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details, and the process for submitting pull requests.\n\n## Sponsors\n\nThe project is sponsored by [Red Hat](https://www.redhat.com).\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallrye%2Fsmallrye-reactive-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallrye%2Fsmallrye-reactive-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallrye%2Fsmallrye-reactive-messaging/lists"}