How ndsev/mapget works
Main Components
a. Core Components:
• Service (Central Coordinator)
• Data Sources (Multiple Types)
• Cache System (RocksDB/Memory)
• HTTP Service Layer
• Client Interface Layer
• Model Layer (Feature Data Model)
b. External Components:
• Client Applications
• Data Source Implementations
• Storage Systems
Architecture Pattern
[Client Layer]
• ↕ HTTP/REST
[Service Layer]
• ↕ Internal APIs
[Core Layer]
• ↕ Storage/Cache
[Data Layer]
Component Relationships
Clients → HTTP Service → Map Service → Cache
• ↘ Data Sources
Detailed Component Breakdown
a. Model Layer (libs/model):
• Feature Models
• Geometry Types
• Attribute Layers
• String Pools
b. Service Layer (libs/service):
• Cache Interface
• Data Source Interface
• Service Configuration
• Location Services
c. HTTP Layer (libs/http-service):
• REST API Endpoints
• HTTP Client
• Service CLI
d. Data Source Layer (libs/http-datasource):
• Data Source Client
• Data Source Server
• HTTP Server Implementation
Key Flows to Highlight
a. Data Retrieval Flow:
Client Request → HTTP Service → Map Service → Cache Check
• ↘ Data Source (if cache miss)
b. Data Source Registration:
Data Source → Service Registration → Source Info Storage
Implementation Details
• mapget-model (core data structures)
• mapget-service (main service logic)
• mapget-http-service (REST interface)
• mapget-http-datasource (remote data source support)