|
| 1 | +# Single Sequencer |
| 2 | + |
| 3 | +A single sequencer is the simplest sequencing architecture for a Rollkit-based rollup. In this model, one node (the sequencer) is responsible for ordering transactions, producing blocks, and submitting data to the data availability (DA) layer. |
| 4 | + |
| 5 | +## How the Single Sequencer Model Works |
| 6 | + |
| 7 | +1. **Transaction Submission:** |
| 8 | + - Users submit transactions directly to the sequencer node via RPC or other interfaces. |
| 9 | +2. **Transaction Ordering:** |
| 10 | + - The sequencer collects transactions from users and orders them into blocks according to the rollup's rules. |
| 11 | +3. **Block Production:** |
| 12 | + - The sequencer produces new blocks at regular intervals or when enough transactions are collected. |
| 13 | + - Each block contains a batch of ordered transactions and metadata. |
| 14 | + |
| 15 | +4. **Data Availability Posting:** |
| 16 | + - The sequencer posts the block data to the configured DA layer (e.g., Celestia, Avail, etc.). |
| 17 | + - This ensures that anyone can access the data needed to reconstruct the rollup state. |
| 18 | + |
| 19 | +5. **State Update:** |
| 20 | + - The sequencer updates the rollup state based on the new block and makes the updated state available to light clients and full nodes. |
| 21 | + |
| 22 | +## Advantages |
| 23 | + |
| 24 | +- **Simplicity:** Easy to set up and operate, making it ideal for development, testing, and small-scale deployments. |
| 25 | +- **Low Latency:** Fast block production and transaction inclusion, since there is no consensus overhead among multiple sequencers. |
| 26 | + |
| 27 | +## Considerations |
| 28 | + |
| 29 | +- **Centralization:** The sequencer is a single point of control. However, this is often acceptable for many applications, especially in early stages or permissioned environments. |
| 30 | +- **No Fault Tolerance:** If the sequencer is unavailable, the rollup cannot make progress. High-availability setups and monitoring can mitigate this risk. |
| 31 | + |
| 32 | +## Use Cases |
| 33 | + |
| 34 | +- Production rollups seeking simplicity and performance |
| 35 | +- Prototyping and development |
| 36 | +- Private or permissioned rollups |
| 37 | +- Projects that value deterministic ordering and operational control |
| 38 | + |
| 39 | +## Future-Proofing |
| 40 | + |
| 41 | +While the single sequencer model is robust and production-ready, Rollkit is designed to support more advanced sequencing architectures in the future. Projects can seamlessly upgrade to decentralized sequencing when the technology and their needs mature. |
0 commit comments