Use Cases
View SourceMacula enables a wide range of decentralized applications across multiple domains. Here are some real-world scenarios where Macula provides the ideal infrastructure.
Business Applications
Partner Networks
Organizations need to share services and capabilities without centralizing control or data.
Example: Supply chain collaboration where multiple companies track shipments, share inventory status, and coordinate logistics without a single company controlling the platform.
Why Macula:
- Each organization runs nodes on their own infrastructure
- Services are discovered via DHT without centralized registry
- Data stays within organizational boundaries
- Multi-tenancy via realms ensures isolation between partners
Supply Chain Tracking
Track goods and events across multiple companies' infrastructure without a central database.
Example: Farm-to-table food tracking where farms, processors, distributors, and retailers each publish events about product movements, with consumers able to trace the complete journey.
Why Macula:
- Events published via pub/sub stay with the originating organization
- Downstream parties subscribe to relevant event streams
- No single point of failure or data custody
- Real-time updates without API polling
Collaborative Platforms
Teams work together without depending on a single SaaS vendor.
Example: Research collaboration platform where universities and research institutions share datasets, computational resources, and results without centralizing sensitive research data.
Why Macula:
- Institutions maintain sovereignty over their data
- RPC enables distributed computation requests
- Pub/sub enables real-time research updates
- Works across institutional firewalls via HTTP/3
IoT & Edge Computing
Smart Homes
Devices communicate locally without cloud dependency.
Example: Home automation where lights, thermostats, sensors, and controllers coordinate via the local mesh, continuing to operate even during internet outages.
Why Macula:
- Devices discover each other via mDNS locally
- Pub/sub for event broadcasting (motion detected, temperature changed)
- RPC for device control (turn on lights, adjust temperature)
- No cloud latency or bandwidth costs
- Privacy: data stays within the home
Industrial Automation
Factories continue operating during network outages.
Example: Manufacturing floor where robots, sensors, quality control systems, and inventory management coordinate production without relying on centralized cloud services.
Why Macula:
- Local mesh operates independently of WAN connectivity
- Real-time control via RPC (< 10ms latency)
- Event streams for monitoring and analytics
- Fault tolerance via OTP supervision
- Scales to thousands of sensors and actuators
Distributed Sensor Networks
Environmental monitoring, agriculture, infrastructure health.
Example: Agricultural IoT network where soil moisture sensors, weather stations, irrigation controllers, and drones share data and coordinate actions across a large farm.
Why Macula:
- Sensors publish readings via pub/sub
- Controllers subscribe to relevant sensor streams
- RPC for remote commands (start irrigation, launch drone survey)
- Works through rural NAT/firewall constraints
- Edge processing reduces bandwidth usage
Adaptive & Collaborative AI
TWEANN-Based Systems
Neural networks that evolve topology and weights locally, then share insights.
Example: Adaptive manufacturing optimization where each production line runs TWEANN agents that learn optimal parameters, then share successful mutations across the mesh.
Why Macula:
- Each edge node runs local evolutionary algorithms
- Successful genome variations published via pub/sub
- Other nodes subscribe and integrate improvements
- No centralized training infrastructure needed
- Continuous adaptation to local conditions
Federated Learning
Train models across distributed nodes without centralizing data.
Example: Healthcare diagnostics where hospitals train ML models on local patient data, share model updates (not data) via the mesh, and collaboratively improve diagnostic accuracy.
Why Macula:
- Model updates published as events (not raw data)
- Privacy-preserving: data never leaves institutions
- Gradual convergence via distributed gradient sharing
- Works across institutional network boundaries
- Multi-tenancy ensures proper isolation
Edge Intelligence
Decision-making at the edge with selective cloud synchronization.
Example: Autonomous vehicle fleet coordination where vehicles make local decisions using onboard AI, share observations and planned maneuvers via the mesh, and only sync aggregated data to the cloud.
Why Macula:
- Low-latency local decision making (< 5ms)
- Real-time coordination via pub/sub
- RPC for requesting assistance from nearby vehicles
- Operates during cellular network dropouts
- Selective cloud sync reduces bandwidth costs
Gaming & Real-Time Applications
Multiplayer Game Meshes
Players connect peer-to-peer without dedicated servers.
Example: LAN party games where players discover each other locally, form game sessions, and play without internet connectivity or centralized game servers.
Why Macula:
- mDNS for local player discovery
- Pub/sub for game state synchronization
- RPC for player actions
- Works offline, no server hosting costs
- Realm isolation per game session
Collaborative Editing
Real-time document collaboration without centralized services.
Example: Privacy-focused collaborative editor where teams edit documents in real-time, with all data staying within the organization's infrastructure.
Why Macula:
- Operational transforms via pub/sub
- Cursor positions and selections as events
- RPC for conflict resolution
- Works through corporate firewalls
- No data leaves organizational control
Infrastructure & Networking
Content Delivery Networks
Decentralized content distribution at the edge.
Example: Community CDN where participants cache and serve content to local peers, reducing bandwidth costs and improving latency without centralized CDN providers.
Why Macula:
- DHT-based content discovery
- Pub/sub for cache invalidation
- RPC for content requests
- Scales organically as nodes join
- No CDN provider fees
Service Mesh for Edge Computing
Microservices at the edge with automatic discovery.
Example: Edge computing platform where microservices discover dependencies, route requests, and balance load across edge nodes without centralized orchestration.
Why Macula:
- Service registry via DHT
- Pub/sub for service health events
- RPC with automatic failover
- Multi-tenancy for SaaS deployments
- Works through NAT and firewalls
Getting Started
Ready to build? See our Hello World Tutorial to build your first decentralized application in 30 minutes.
For technical architecture details, see the Architecture Index.