Module osm.replication

OpenStreetMap replication state, path and incremental apply semantics.

Networking, compression, scheduling and checkpoint persistence are outside this module. The caller supplies parsed/decoded resources and owns durable checkpoint storage.

Date

2026-11-08

Functions

NameDescription
applyGzipReplicationStep(store, compressedChange, checkpoint, feed, candidate, result, status, options) Decode, parse and transactionally apply one GZIP-compressed replication step.
applyReplicationStep(store, checkpoint, feed, candidate, document, result, status) Apply one decoded replication step to an editable store.
classifyReplicationStep(checkpoint, feed, candidate) Classify one candidate state relative to a caller-owned checkpoint.
readReplicationState(source, state, status, options) Parse one bounded OpenStreetMap replication state.txt resource.
replicationResourcePaths(sequenceNumber, paths, status) Format the canonical official-style relative diff/state paths.

Structs

NameDescription
ReplicationApplyResult Observable result of one accepted/replayed replication step.
ReplicationApplyStatus Diagnostic for a rejected step.
ReplicationCheckpoint Durable semantic synchronization point owned/persisted by the caller.
ReplicationFeed Identity of one replication stream.
ReplicationIngestOptions Resource and parser limits for one compressed replication change resource.
ReplicationIngestStatus Diagnostic for one compressed replication ingestion attempt.
ReplicationPathStatus
ReplicationResourcePaths Current official-style relative resource paths for one sequence.
ReplicationState Parsed semantic subset of one replication state file.
ReplicationStateReadOptions Bounded controls for reading one state.txt resource.
ReplicationStateReadStatus Diagnostic for one state.txt read.
ReplicationTimestamp Normalized UTC timestamp retained from replication state metadata.

Enums

NameDescription
ReplicationApplyError Stable replication-step application failure.
ReplicationGranularity Caller-selected replication cadence.
ReplicationIngestError Stable failure stage for compressed replication ingestion.
ReplicationPathError
ReplicationStateReadError Stable failure class for replication state parsing.
ReplicationStepRelation Relationship of a candidate state to the caller's checkpoint.

Manifest constants

NameTypeDescription
maximumReplicationSequence Highest sequence representable by the current nine-digit official layout.