Skip to content

feat: implement replication protocol and message codec #951

@bmuddha

Description

@bmuddha

Problem:
Need a wire protocol for streaming transactions from primary to standby nodes. No standard exists yet for this specific use case.

Proposal:
Define message types (Heartbeat, Transaction, Block, SuperBlock, Handshake) as WebSocket frames with type prefix + bincode payload. Implement codec for encoding/decoding.

Acceptance criteria:

  • Message types defined with byte identifiers
  • Bincode serialization/deserialization works
  • WebSocket frame wrapper implemented
  • Unit tests for round-trip encoding/decoding

Reference: MIMD-0019 Phase 1

Parent epic: #935

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions