
Snowflake
Use independent Snowflake streams and verify when a consumer’s offset advances after a write.
- Source update
- Billing changes the subscription from Active to Paused.
- Dashboard consumer
- A committed write advances only the dashboard stream.
- Audit consumer
- The unread change remains available on its own stream.
A Snowflake table receives billing updates. A dashboard task and an audit export both need the same changes. Use separate Snowflake streams so the dashboard’s committed write does not move the audit export’s position.
Give each consumer its own stream
Create two streams on the test source table before making the sample updates. A stream tracks an offset. A plain SELECT can inspect the changes without moving that position. Using the stream in a committed write advances the stream’s offset. Keep the audit and dashboard consumers separate if they commit independently. Snowflake streams report the changes between offsets, so use an append-only event source if you need every intermediate business event.
In the example, billing changes subscription A from Active to Paused. The dashboard task consumes its stream into a current-state table. The audit export hasn’t run yet. Check that the audit stream still shows its own change and that the dashboard stream no longer returns the consumed change.
Observe the offset before and after a write
| Operation | Expected behavior | Check |
|---|---|---|
| Inspect the dashboard stream twice. | A read alone does not consume the change. | Both reads can see the sample change before a committing write. |
| Attempt and roll back the dashboard write. | The destination write rolls back and the dashboard stream retains its position. | Read the stream and destination after the rollback. |
| Commit the dashboard write. | The current state is Paused. The audit consumer retains its own unread change. | Compare stream results and the dashboard’s persisted record. |
Monitor consumer lag and stream staleness, and document the source snapshot used if a rebuild is needed. The integration and sync guide shows how to track the oldest unapplied change independently of applied-row lag.