Overview of Holochain Architecture

This section explores the technical architecture of Holochain, including its core components, design principles, and system interactions. Understanding Holochain’s architecture is essential for developing robust applications and leveraging the full potential of this distributed computing framework.

Architectural Components

Core System Components

Core Components

  • Core Components Directory - Detailed documentation of Holochain’s fundamental building blocks
    • Source Chain - Agent’s personal immutable record chain
    • DHT - Distributed Hash Table for shared data
    • Networking Layer - Peer discovery and communication
    • WASM Runtime - Execution environment for application code

Architectural Principles

Agent-Centricity

  • Each agent maintains their own source chain
  • Data originates from and is signed by agents
  • Validation occurs from the perspective of receiving agents

Distributed Validation

  • Rules are enforced by the collective
  • No central authority for validation
  • Cryptographic accountability for all actions

Scalability by Design

  • Sharding through DHT architecture
  • Parallel validation across the network
  • Local-first operations with eventual consistency

System Interactions

Data Flow

  1. Agent creates and signs data on their source chain
  2. Data is published to the DHT
  3. Validators check data against validation rules
  4. Valid data becomes available to other agents

Application Execution

  1. User interfaces interact with the Conductor
  2. Conductor manages cell instances
  3. Cells execute application logic in WASM
  4. Results propagate through the network

Technical Specifications

  • Written primarily in Rust for performance and safety
  • WebAssembly (WASM) for portable application code
  • Libp2p networking stack for peer communication
  • Content-addressable storage using multihash

External Resources

3 items under this folder.

conductor

    Holochain Core Components

    Fundamental building blocks and architectural elements that form the foundation of Holochain's distributed computing framework