Make test events
The mock command prints events for a mock order system, one event on each line.
streamview demo uses the same events.
Send test events to streamview
Section titled “Send test events to streamview”streamview mock --backfill 900 | streamview serve - --openThe page shows 15 minutes of old events, and then new events continuously.
Write test events to a file
Section titled “Write test events to a file”Add --once. The command then stops after it prints the old events.
streamview mock --backfill 3600 --once > events.jsonlChange the number of events
Section titled “Change the number of events”Add --rate with the number of orders for each second. The default is 5.
Each order makes more than one event.
streamview mock --rate 20 | streamview serve - --openFind the faults in the test events
Section titled “Find the faults in the test events”The mock order system makes two faults in each interval of ten minutes:
- A bad release. Some
orders.placedevents sendtotalas text. - A payment outage. More payments fail, and
payments.capturedevents come late.