opensensorhub / osh-core

OpenSensorHub Core Modules
http://docs.opensensorhub.org
Mozilla Public License 2.0
32 stars 16 forks source link

Use queue polling instead of push for delivering data events #106

Closed alexrobin closed 4 years ago

alexrobin commented 6 years ago

This makes it easier to handle consumers processing messages at different rate, as well as allow consumers to playback some messages.

However, a subscription mechanism has to be put it place and subscription info needs to be persisted between node restarts.

alexrobin commented 5 years ago

Solution: New Java 9 Flow interfaces will be used to implement push-based event distribution with optional back pressure from consumers

alexrobin commented 4 years ago

The new EventBus implementation in v2.0 exposes flow control capabilities offered by the Java 9 Flow API.