System Overview
High-Level Architecture
┌──────────────────────────────────────────────────────────────────────────┐
│ NCN Network v2 │
│ │
│ ┌─────────────┐ │
│ │ Clients │ Submit inference requests, pay for computation │
│ └──────┬──────┘ │
│ │ HTTP/gRPC/WebSocket │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Gateway Layer │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │ Gateway 1 │ │ Gateway 2 │ │ Gateway N │ ... │ │
│ │ │ (Subnet 1) │ │ (Subnet 2) │ │ (Subnet N) │ │ │
│ │ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ │ │
│ └─────────┼────────────────┼────────────────┼──────────────────────┘ │
│ │ gRPC │ │ │
│ ▼ ▼ ▼ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Compute Layer │ │
│ │ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ │
│ │ │ Compute 1 │ │ Compute 2 │ │ Compute M │ ... │ │
│ │ │ (GPU/CPU) │ │ (GPU/CPU) │ │ (GPU/CPU) │ │ │
│ │ └─────────────┘ └─────────────┘ └─────────────┘ │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Coordination Layer │ │
│ │ ┌───────────────────────────────────────────────────────────┐ │ │
│ │ │ P2P Registry Network │ │ │
│ │ │ • Node Discovery (Kademlia DHT) │ │ │
│ │ │ • Validator Consensus │ │ │
│ │ │ • Subnet Management │ │ │
│ │ │ • Mempool for pending requests │ │ │
│ │ └───────────────────────────────────────────────────────────┘ │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────────┐ │
│ │ Blockchain Layer │ │
│ │ ┌─────────────────┐ ┌─────────────────┐ │ │
│ │ │ InferencePayment│ │ValidatorRegistry│ │ │
│ │ │ Contract │ │ Contract │ │ │
│ │ └─────────────────┘ └─────────────────┘ │ │
│ │ Arbitrum / Ethereum │ │
│ └──────────────────────────────────────────────────────────────────┘ │
│ │
└──────────────────────────────────────────────────────────────────────────┘Component Deep Dive
Gateway Node
Compute Node
Layer
Technology
Protection
P2P Registry
Smart Contracts
Contract
Address (Forknet)
Purpose
Data Flow
Complete Request Lifecycle
Scalability Design
Horizontal Scaling
Component
Scaling Strategy
Performance Targets
Metric
Target
Bottleneck Mitigation
Potential Bottleneck
Mitigation
Fault Tolerance
Node Failures
Failure
Recovery
Payment Safety
Scenario
Protection
Next Steps
Last updated
