io.reactivex.netty.examples.http.logtail.README.md Maven / Gradle / Ivy
Overview
========
Log tail example aims to illustrate how SOA application, consisting of multiple level service hierarchy could be
implemented with RxNetty. The key service here is log aggregator (LogAggregator class) that taps to multiple
lower-level services (log producers), and processes/filters the received log entries prior to sending it further
to a client.
Running
=======
You can run multiple log producers, but they have to have consecutive port numbers:
```
$ cd RxNetty/rxnetty-examples
$ ../gradlew runLogTailProducer -Pport= -Pinterval= > logProducer1.log &
$ ../gradlew runLogTailProducer -Pport= -Pinterval= > logProducer2.log &
...
$ ../gradlew runLogTailProducer -Pport= -Pinterval= > logProducerM.log &
```
next log aggregator has to be started:
```
$ cd RxNetty/rxnetty-examples
$ ../gradlew runLogTailAggregator -PportFrom= -PportTo=
```
and the last one is the client:
```
$ cd RxNetty/rxnetty-examples
$ ../gradlew runLogTailClient
```