public class StockMain extends Object
| Constructor and Description |
|---|
StockMain() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Example that shows the basic usage of streaming quotes from a remove microservice.
|
public static void main(String[] args)
Request:
QuoteService -> gateway (--- network --->) node1 -> SimpleQuoteService
Stream:
onNext(quote) <- gateway (<--- network ---) node1 <- onNext(quote)
the SimpleQuoteService generates random stock price every 1 second. each time subscriber subscribe he will get all
the history plus the next coming update of stock price.
the example for simplicity using both nodes on the same jvm for ease of debugging.args - none.Copyright © 2015–2018. All rights reserved.