%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D', 'fontSize': '12px'}}}%%
graph TB
subgraph COMPARE["Architecture Selection Guide"]
direction TB
end
subgraph TIER3["3-TIER"]
T3_L1["Cloud/App"]
T3_L2["Gateway"]
T3_L3["Devices"]
T3_L1 --- T3_L2 --- T3_L3
end
subgraph LAYER5["5-LAYER IoT-A"]
L5_1["Business"]
L5_2["Application"]
L5_3["Middleware"]
L5_4["Network"]
L5_5["Perception"]
L5_1 --- L5_2 --- L5_3 --- L5_4 --- L5_5
end
subgraph EFC["EDGE-FOG-CLOUD"]
EFC_1["Cloud"]
EFC_2["Fog"]
EFC_3["Edge"]
EFC_4["Device"]
EFC_1 --- EFC_2 --- EFC_3 --- EFC_4
end
subgraph LAMBDA["LAMBDA"]
LAM_1["Serving"]
LAM_2["Batch"]
LAM_3["Speed"]
LAM_4["Ingestion"]
LAM_1 --- LAM_2
LAM_1 --- LAM_3
LAM_3 --- LAM_4
LAM_2 --- LAM_4
end
TIER3 -->|"Simple<br/>PoC"| USE1["Best for:<br/>Prototypes, simple deployments"]
LAYER5 -->|"Enterprise<br/>Semantic"| USE2["Best for:<br/>Complex systems, ontologies"]
EFC -->|"Latency<br/>Critical"| USE3["Best for:<br/>Real-time, bandwidth optimization"]
LAMBDA -->|"Big Data<br/>Analytics"| USE4["Best for:<br/>Historical + real-time analytics"]
style TIER3 fill:#16A085,stroke:#2C3E50,stroke-width:2px,color:#fff
style LAYER5 fill:#E67E22,stroke:#2C3E50,stroke-width:2px,color:#fff
style EFC fill:#2C3E50,stroke:#16A085,stroke-width:2px,color:#fff
style LAMBDA fill:#7F8C8D,stroke:#2C3E50,stroke-width:2px,color:#fff
style USE1 fill:#16A085,stroke:#2C3E50,color:#fff
style USE2 fill:#E67E22,stroke:#2C3E50,color:#fff
style USE3 fill:#2C3E50,stroke:#16A085,color:#fff
style USE4 fill:#7F8C8D,stroke:#2C3E50,color:#fff
181 IoT Reference Architecture Builder
Build Standards-Based Architectures
181.1 IoT Reference Architecture Builder
Understanding IoT reference architectures is essential for designing scalable, interoperable systems. This interactive tool allows you to select architecture templates, drag components to build custom architectures, configure component properties, and export your design as a Mermaid diagram.
Build and explore IoT architectures using four major templates:
- 3-Tier Architecture: Simple device-gateway-cloud model
- 5-Layer IoT-A: European research project reference model with rich semantics
- Edge-Fog-Cloud: Distributed computing continuum architecture
- Lambda Architecture: Big data processing with batch and speed layers
- Select an architecture template from the dropdown
- Browse the component palette organized by layer
- Click components to add them to the canvas
- Click on placed components to configure their properties
- Use Auto-Layout to organize the diagram automatically
- Validate your architecture for connectivity issues
- Export as Mermaid diagram for documentation
- Review the cost estimation based on selected components
181.2 Understanding IoT Reference Architectures
181.2.1 Why Reference Architectures Matter
Reference architectures provide standardized frameworks for designing IoT systems. They help organizations:
| Benefit | Description |
|---|---|
| Interoperability | Common interfaces enable integration across vendors |
| Scalability | Proven patterns for growing from prototype to production |
| Security | Built-in security considerations at each layer |
| Reusability | Component-based design promotes code and service reuse |
| Communication | Shared vocabulary for stakeholders |
181.2.2 Architecture Template Comparison
Alternative View:
The simplest IoT architecture with three distinct layers:
- Device Layer: Sensors, actuators, and constrained devices
- Gateway/Platform Layer: Protocol translation, local processing, buffering
- Cloud/Application Layer: Analytics, storage, dashboards, business logic
Best for: Simple deployments, proof-of-concepts, single-domain applications
Typical components: Sensors, gateways, MQTT brokers, time-series databases, dashboards
Comprehensive architecture from the European IoT-A research project:
- Perception Layer: Physical sensors and data collection
- Network Layer: Communication protocols and routing
- Middleware Layer: Service abstraction, data management, security
- Application Layer: Domain-specific IoT applications
- Business Layer: Business models, workflows, monetization
Best for: Complex enterprise IoT, systems requiring rich semantics and ontologies
Typical components: Diverse sensors, protocol adapters, device registries, rule engines, workflow engines
Distributed computing architecture optimized for latency and bandwidth:
- Device Tier: Sensors, actuators, constrained devices
- Edge Tier: Local processing, filtering, real-time response (microseconds-milliseconds)
- Fog Tier: Regional processing, aggregation, caching (milliseconds-seconds)
- Cloud Tier: Centralized processing, ML training, long-term storage (seconds-minutes)
Best for: Latency-sensitive applications, bandwidth optimization, distributed ML inference
Typical components: Edge nodes, stream processors, caches, data lakes, ML inference engines
Big data architecture balancing accuracy and latency:
- Data Ingestion: Stream collection and initial routing
- Speed Layer: Real-time processing for low-latency views (approximations)
- Batch Layer: Master dataset processing for accurate views (delayed)
- Serving Layer: Merged views, query interface, API
Best for: Big data IoT, analytics-heavy workloads, scenarios requiring both real-time and historical analysis
Typical components: Message queues, stream processors, data lakes, batch analytics, API gateways
181.2.3 Component Selection Guidelines
When building your architecture, consider these component selection criteria:
| Component Type | Selection Criteria |
|---|---|
| Message Broker | Connection count, QoS requirements, clustering needs |
| Database | Write throughput, query patterns, retention period |
| Stream Processor | Latency requirements, throughput, state management |
| Edge Computing | Local processing needs, connectivity reliability, power constraints |
| ML Inference | Model complexity, latency requirements, hardware availability |
181.2.4 Cost Optimization Strategies
- Right-size components: Start small, scale based on actual usage
- Use edge processing: Reduce cloud data transfer costs
- Implement data tiering: Move cold data to cheaper storage
- Leverage caching: Reduce database query costs
- Optimize message routing: Filter unnecessary data at the edge
181.2.5 Architecture Validation Checklist
- Missing device layer: Every IoT architecture needs sensors or actuators
- No message broker: Async communication is essential for scalability
- Missing storage: Data must be persisted for analytics and audit
- Single points of failure: Add redundancy for critical components
- Security gaps: Ensure authentication and encryption at each layer