A guide to how Springtail works.
CREATE TABLE
| ALTER TABLE
| etc). Once data is received by Springtail it is logged to the storage system making it durable, so that the primary database can release its resources (freeing data from its write-ahead log).
Once the data is durable, transactions are extracted from the replication stream. Each transaction is isolated from the log and the operations that make up that transaction (e.g., INSERT
| UPDATE
| DELETE
| etc.) are processed, updating the corresponding tables within the storage layer. Data within each table is stored in primary key order. When all operations for a transaction are processed, the system’s latest transaction ID is advanced, resulting in a new version of the database.