Skip to main content

Epoch Synchronization

EPOCH is MonoTerm’s solution for preventing resize race conditions between frontend and backend.

The Resize Problem

When a terminal is resized, multiple components must be updated synchronously.

The Race Condition

Resize notifications travel at different speeds through the system.

EPOCH: The Solution

EPOCH is a version number that increments on each resize.

Frontend-Initiated Pattern

The epoch is managed by the frontend, not the backend.

Complete EPOCH Flow

Step-by-step walkthrough of a resize with EPOCH.

Double Verification

Even with EPOCH, we verify actual dimensions match.

Why Not Just Use Dimensions?

Why do we need EPOCH when we could just compare dimensions?

Summary