Storage
Where the data is
Section titled “Where the data is”| Data | kafka, nats, serve |
With --read-only |
demo |
streamview day |
|---|---|---|---|---|
| Events | In the SQLite file | In the SQLite file | In a temporary file | Not stored |
| Sets, colors, pins, the lane sequence, and notes | In the SQLite file. All users of the server see them. | In the browser of each user | In the temporary file. With --public, in the browser of each user. |
In the browser of each user |
The SQLite file
Section titled “The SQLite file”The default file is streamview.db in the current directory. The --db option gives a different path.
At the start, serve, kafka, nats, rabbitmq, and webhooks print the full path of the file.
- The server writes each accepted event to the file.
- When the server starts with a file that has events, it loads them.
- With
--keep, the server deletes old events from the file.
demo uses a new file in the temporary directory of the system for each start.
The browser
Section titled “The browser”The page keeps all events of the server in the memory of the browser.
When the server does not keep the settings, the page keeps them in the local storage of the browser. The settings are the sets, the colors, the pins, the lane sequence, and the notes. The settings then apply to one browser and one server address.
The adapters
Section titled “The adapters”The first time that you run streamview kafka or streamview nats, streamview writes the adapter into ~/.cache/streamview/.
Then it installs the packages of the adapter with npm.