Getting Started#
This page takes you from a fresh install to a recorded session.
Before you begin#
- A Windows machine to run the recorder.
- A Kafka broker that a Stream API producer (for example the Bridge Service) is publishing to.
- The producer's Stream Creation Strategy, broker address and data source name. The recorder must use the same values. See Server Configuration.
1. Edit AppConfig.json#
The recorder reads Config/AppConfig.json from the folder containing the executable. This is the shipped file, which records to SSN2 files and works as a starting point:
| AppConfig.json | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
Change at least StreamApiConfig.BrokerUrl, StreamApiConfig.StreamCreationStrategy and StreamReadingConfig.DataSource to match your producer, and WritingConfig.RecordingFolder to a folder you want.
Add or update — don't replace the whole file
To record to a SQL Race database instead of SSN2 files, change only WritingConfig.SessionFormat to "Database" and make sure the SqlRaceConfig values are right for your database. The shipped SqlRaceConfig already points at a SQLite file. See the Configuration Guide.
2. Start the recorder#
Run MA.DataPlatforms.DataRecorder.Host.exe. It takes no command-line arguments; all settings come from AppConfig.json (and environment variables, see below).
If the configuration is invalid, the recorder logs each problem and does not start. See Troubleshooting.
3. Publish a session#
Start a session from your Stream API producer on the configured data source. The recorder logs to the console and to logs/standalone-stream-recorder-<date>.txt.
4. Stop the recorder#
Press Ctrl+C in the console window.
Overriding settings with environment variables#
Environment variables are read after AppConfig.json, so they override it. Use a double underscore for nesting, for example WritingConfig__SessionFormat.