Source types
The type of a source says how data gets in. Everything else (fields, aggregate, charts, export) is the same for all of them. See Sources.
| Type | Data comes from | Edit entries | Read-only? | |
|---|---|---|---|---|
| Store | You: through the API and SDK (full create, read, update, delete), in the app, and by file upload | Yes | No | |
| Push | Your systems, via HTTP push | Delete only | No | |
| RabbitMQ | A queue on your own RabbitMQ broker, continuously | No | Yes | |
| BigQuery | A table in Google BigQuery, pulled periodically | No | Yes | |
| Customers | Your customers, automatically | No | Yes | |
| Transform | Another source, aggregated | No | Yes |
You create Store, Push, RabbitMQ and BigQuery sources yourself in the Insights app. The Customers source exists automatically. Transform sources are created from a table view.
Which one do I need?
| I want to… | Use |
|---|---|
| Use a database for my app, or keep records I add and correct by hand and by code | Store |
| Upload a CSV or JSON file, and later upload more | Store |
| Report events from my backend (orders, logins, audit) | Store (via API) or Push for high volume |
| Consume events from a message broker I already run | RabbitMQ |
| Analyse data that lives in Google BigQuery (for example GA4 exports) | BigQuery |
| Build charts on my customers | Customers (automatic) |
| Pre-aggregate a big source into a small one | Transform |
Store
The general-purpose, fully editable source. Every document can be created, read, updated and deleted directly through the API and SDK, so a store works as a database backend for your own apps, with charts, dashboards and queries on the same data for free. You can also edit entries in the app, and upload files again and again to extend it. See the dedicated page: Store source.
Push
For systems that send data to Scenid.
- Data arrives with
POST /api/v2/source/{sourceId}/pushorSource(name).push(docs). The call answers immediately ({ ok: true, queued: n }). Scenid validates and indexes in the background. - Only service tokens (your app) may push.
- After creating the source, review the detected fields in the Data tab and start the import.
- Default duplicate control is hash: sending the same document twice does not duplicate it.
- Invalid values do not block anything. They are reported in the Warnings tab.
await sdk.asAdmin().Insights().Source('Sensor stream').push([
{ timestamp: new Date().toISOString(), deviceId: 'SENS-HH-01', temperature: 20.4 }
])
Use push when volume is high and you do not need the id of each document back. Use a Store source and Doc.create when you do.
RabbitMQ
A continuous consumer for a queue on your own RabbitMQ broker. Nothing to build, no API to call. See RabbitMQ source.
BigQuery
Pulls rows from a Google BigQuery table on a schedule (every five minutes by default) through a service account. Good for analytics exports such as GA4 (events_* tables).
| Setting | Description |
|---|---|
| Dataset ID, Table ID | The table. Wildcards like events_* work |
| Service Account JSON | Key of a service account with the roles BigQuery Data Viewer and BigQuery Job User. Stored encrypted |
| Cursor field (optional) | A field for incremental fetching |
| Exclude tables (optional) | Tables to skip, for example intraday_* |
Nested BigQuery fields are flattened with dots. The connection can be edited later in the Connection tab. Documents are read-only in Scenid.
Transform
A derived source. Take a table view in the Insights app, define grouping and aggregation, and Scenid keeps a new source up to date with the result, updating only the groups affected by upstream changes. Use it to pre-aggregate large sources for fast dashboards.
Compare the important details
| Store | Push | RabbitMQ | BigQuery | |
|---|---|---|---|---|
| Write via API/SDK | Doc.*, batchInsert | push, Doc.* | No | No |
| Edit entries in the app | Yes | Delete | No | No |
| File upload | Yes, repeatedly | No | No | No |
| Duplicate control | Automatic or field | Hash or field | Hash or field | Hash |
Read with aggregate, charts, export | Yes | Yes | Yes | Yes |