All Projects → apptik → Rhub

apptik / Rhub

Licence: apache-2.0
Reactive Event Hub

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rhub

Hivemq Mqtt Client
HiveMQ MQTT Client is an MQTT 5.0 and MQTT 3.1.1 compatible and feature-rich high-performance Java client library with different API flavours and backpressure support
Stars: ✭ 402 (+509.09%)
Mutual labels:  rxjava, reactive-programming, reactive-streams, reactor
Spring Webflux Reactive Rest Api Demo
Build Reactive Rest APIs with Spring WebFlux and Reactive Mongo
Stars: ✭ 117 (+77.27%)
Mutual labels:  reactive-programming, reactive-streams, reactor
Reactive Ms Example
An educational project to learn reactive programming with Spring 5
Stars: ✭ 157 (+137.88%)
Mutual labels:  reactive-programming, reactive-streams, reactor
Rxjava2 Jdbc
RxJava2 integration with JDBC including Non-blocking Connection Pools
Stars: ✭ 360 (+445.45%)
Mutual labels:  rxjava, reactive-programming, reactive-streams
reacted
Actor based reactive java framework for microservices in local and distributed environment
Stars: ✭ 17 (-74.24%)
Mutual labels:  reactive-streams, eventbus, reactive-programming
kotlin-kafka-and-kafka-streams-examples
Kafka with KafkaReactor and Kafka Streams Examples in Kotlin
Stars: ✭ 33 (-50%)
Mutual labels:  reactive-streams, reactive-programming, reactor
KotlinReactiveMS
An educational project to learn reactive programming with Spring 5 and Kotlin
Stars: ✭ 33 (-50%)
Mutual labels:  reactive-streams, reactive-programming, reactor
Spring Reactive Sample
Spring 5 Reactive playground
Stars: ✭ 867 (+1213.64%)
Mutual labels:  rxjava, reactive-streams, reactor
assembler
Functional, type-safe, stateless reactive Java API for efficient implementation of the API Composition Pattern for querying/merging data from multiple datasources/services, with a specific focus on solving the N + 1 query problem
Stars: ✭ 102 (+54.55%)
Mutual labels:  reactive-streams, reactive-programming, reactor
reactor-go
A golang implementation for reactive-streams.
Stars: ✭ 48 (-27.27%)
Mutual labels:  rxjava, reactive-streams, reactor
Ticket Analysis
移动端的彩票开奖查询系统
Stars: ✭ 61 (-7.58%)
Mutual labels:  rxjava, eventbus
Viabus Architecture
让 Android 开发可以像流水线一样高效的,职责分离架构 ⚡ 不同于 MVP 的配置解耦,也不能和 似是而非 的 MVVM - Clean 同日而语。VIABUS 是世界范围内首个明确提出,通过职责分离,来真正实现 UI 和 业务并行开发的 Android 项目级开发架构和设计模式理念。
Stars: ✭ 485 (+634.85%)
Mutual labels:  rxjava, reactive-programming
Smartrecom
一款基于行为识别和个性化推荐的智能推荐APP,实时为你推荐音乐和电影,让你的生活更休闲,更精彩!
Stars: ✭ 663 (+904.55%)
Mutual labels:  rxjava, eventbus
Jetlinks
JetLinks Core
Stars: ✭ 380 (+475.76%)
Mutual labels:  reactive-streams, reactor
Rxjavaextensions
RxJava 2.x & 3.x extra sources, operators and components and ports of many 1.x companion libraries.
Stars: ✭ 662 (+903.03%)
Mutual labels:  rxjava, reactive-streams
Rpd
👌 A Minimal Engine for creating Node-Based Visual Programming User Interfaces
Stars: ✭ 370 (+460.61%)
Mutual labels:  reactive-programming, reactive-streams
Rxcombine
Bi-directional type bridging between RxSwift and Apple's Combine framework
Stars: ✭ 741 (+1022.73%)
Mutual labels:  reactive-programming, reactive-streams
Scalecube Services
v2.0 - ScaleCube Services provides a low latency Reactive Microservices library for serverless service registry and discovery based on gossip protocol and without single point-of-failure or bottlenecks.
Stars: ✭ 23 (-65.15%)
Mutual labels:  reactive-streams, reactor
Combineext
CombineExt provides a collection of operators, publishers and utilities for Combine, that are not provided by Apple themselves, but are common in other Reactive Frameworks and standards.
Stars: ✭ 682 (+933.33%)
Mutual labels:  reactive-programming, reactive-streams
Rxjavainterop
Library to convert between RxJava 1.x and 2.x/3.x reactive types, schedulers and resource handles.
Stars: ✭ 856 (+1196.97%)
Mutual labels:  rxjava, reactive-streams

RHub - Reactive Event Hub

JavaDocs

Build Status Android Arsenal

Reactive Hub is a collection of multi-receiver and multi-producer Proxies connecting Publishers and Subscribers so that Subscribers can receive events without knowledge of which Publishers, if any, there are, while maintaining easily identifiable connection between them.

It is ideal for centralizing cross-cutting activities like UI updates, logging, alerting, monitoring, security, etc.

Motivation

  • Simplified combination of Pub/Sub (EventBus) pattern and Reactive Programming
  • Most 'Rx-EventBuses' implementations support only non Rx input/output of events
  • In Standard EventBus the link between producers and event consumers is not that evident thus making the code more difficult to follow, reason and debug

Example

	RxHub rxHub = new DefaultRxJava1Hub();
	rxHub.getPub("src1").subscribe(System.out::println);
	rxHub.addUpstream("src1", Observable.just(1));
	rxHub.addUpstream("src1", Observable.just(5));
	rxHub.getPub("src1").subscribe(System.err::println);

More Examples

Overview

RHub

RHub allows Publish/Subscribe pattern implementation and thus helps decouple components. This can be compared to an EventBus where:

  • publishing events may happen via single post using 'emit()' or by adding a Publisher
  • RHub Proxies take care of connecting publishers and consumers to the Hub
  • The subscriptions and the flow of events is handled by the Reactive Framework (RxJava, Reactor, etc.)

In RHub different set of events are separated into Proxies identified by a Tag(topic).

  • a Hub contains Proxies which can merge inputs from 0-n Publishers and post to 0-n Subscribers
  • a Proxy is identified by a Tag
  • a single event from non-rx code can be emitted on a Proxy

Check also the Gherkin Features

Modules

Download

Find the latest JARs or grab via Maven:

<dependency>
  <groupId>io.apptik.rhub</groupId>
  <artifactId>XXX</artifactId>
  <version>0.2.0-alpha1</version>
</dependency>

or Gradle:

compile 'io.apptik.rhub:XXX:0.2.0-alpha1'

Downloads of the released versions are available in Sonatype's releases repository.

Snapshots of the development versions are available in Sonatype's snapshots repository.

Questions

StackOverflow with tag 'rhub' or 'apptik'

Licence

Copyright (C) 2016 AppTik Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].