How fiware/tutorials.ngsi-ld works
Main Components
a) Core Components:
• NGSI-LD Context Broker (central component)
• IoT Agents Layer (handling JSON and Ultralight protocols)
• Identity Management System
• Historical Data Storage (QuantumLeap)
• Big Data Processing Systems (Flink and Spark)
b) Application Components:
• Frontend Web Application (views in Pug)
• Backend Express.js Application
• API Controllers Layer
• Data Models Layer
• Security Layer
Application Layer
• Controllers (app/controllers/)
• Routes (app/routes/)
• Models (app/models/)
Integration Layer
• IoT Controllers (app/controllers/iot/)
• Proxy Controllers (app/controllers/proxy/)
• NGSI-LD Controllers (app/controllers/ngsi-ld/)
Data Layer
• MongoDB (for buildings)
• Context Broker Storage
• Time Series Database
Use the following visual elements:
• Rectangles: Main services
• Hexagons: IoT components
• Rounded rectangles: APIs and interfaces
• Blue: Core FIWARE components
• Green: IoT-related components
• Yellow: Data storage
• Orange: Security components
• Grey: External services/APIs
c) Connection Types:
Data Flow Paths
• IoT Devices → IoT Agents → Context Broker
• Context Broker → Historical Storage
• Applications → Security Layer → Context Broker
• Context Broker → Big Data Processing
Integration Points
• External API connections (OpenWeatherMap, Twitter)
• IoT protocol translations (JSON, Ultralight, XML)
• Security middleware interactions