How golemfactory/yagna works
Main Components
a) Core Services Layer:
• Identity Service (core/identity)
• Market Service (core/market)
• Payment Service (core/payment)
• Activity Service (core/activity)
• Network Service (core/net)
• GSB (Golem Service Bus) API (core/gsb-api)
b) Agent Layer:
• Provider Agent (agent/provider)
• Requestor Interface
c) Execution Layer:
• ExeUnit Supervisor (exe-unit)
• Runtime Implementations:
• WASM Runtime
• VM Runtime
• SGX Runtime
d) Payment Infrastructure:
• Payment Drivers (core/payment-driver)
• ERC20 Implementation
• Layer 1 & Layer 2 Support
Component Relationships
a) Market Flow:
Requestor -> Market Service -> Provider Agent
• ↓
• Identity Service
b) Execution Flow:
Provider Agent -> ExeUnit Supervisor -> Runtime Implementation
• ↓ ↓
Activity Service Network Service
c) Payment Flow:
Payment Service -> Payment Drivers -> Blockchain
• ↓
Market Service
Layer Organization
[Application Layer]
• ↓
[Core Services Layer]
• ↓
[Execution Layer]
• ↓
[Infrastructure Layer]
Critical Elements to Highlight
• GSB (Golem Service Bus) as the central communication backbone
• P2P Network Infrastructure
• Market Matching System
• Payment Processing Pipeline
• Runtime Environment Management
Additional Details
Annotations for:
• GLM Token Integration
• Layer 1/Layer 2 Payment Channels
• Security Components (SGX)
• Service Discovery Mechanisms
• Resource Management
Implementation Notes
• Version/state indicators for beta/production components