Appearance
Architecture Overview
The Real Estate Sovereign Data Space Platform is built on a modular, cloud-native architecture that enables sovereign data exchange for the real estate sector while maintaining regulatory compliance.
High-Level Architecture
mermaid
graph TB
subgraph Users[Users & Clients]
Portal[Operator Console]
DevConsole[Developer Console]
Mobile[Mobile Apps]
ThirdParty[3rd Party Systems]
AI[AI Agents via MCP]
end
subgraph Edge[Edge Layer]
Traefik[Traefik v3<br/>Reverse Proxy & TLS]
WAF[WAF / Rate Limiting]
Auth[Keycloak<br/>OIDC / SAML / LDAP]
end
subgraph Gateway[API Gateway]
REST[REST API<br/>OpenAPI 3.1]
GraphQL[GraphQL API<br/>Federation Ready]
WS[WebSocket API<br/>Real-time Updates]
Async[AsyncAPI<br/>Event Streaming]
end
subgraph Core[Core Services]
API[Real Estate API<br/>Domain Logic]
EDC[EDC-V Connector<br/>DSP 1.1]
XRoad[X-Road Security Server<br/>v7.x]
MCP[MCP Gateway<br/>v1.0]
end
subgraph Domain[Domain Services]
Participant[Participant Mgmt]
Asset[Asset Catalog]
Contract[Contract Negotiation]
Transfer[Data Transfer]
Policy[ODRL Policy Engine]
KYC[KYC & Compliance]
Valuation[Valuation Engine]
Project[Project Mgmt]
end
subgraph Data[Data Layer]
PG[(PostgreSQL 16<br/>+ TimescaleDB)]
Redis[(Redis 7 Cluster<br/>Cache & Sessions)]
MinIO[(MinIO<br/>S3 Object Storage)]
Kafka[Apache Kafka<br/>Event Streaming]
ES[(Elasticsearch<br/>Search & Analytics)]
end
subgraph Observability[Observability]
Prom[Prometheus<br/>Metrics]
Grafana[Grafana<br/>Dashboards]
Loki[Loki<br/>Logs]
Tempo[Tempo<br/>Traces]
Alert[Alertmanager<br/>Alerting]
end
Users --> Edge
Edge --> Gateway
Gateway --> Core
Core --> Domain
Domain --> Data
Core --> Observability
Domain --> Observability
Data --> ObservabilityDesign Principles
1. Sovereignty First
- Data never leaves participant control without explicit policy consent
- ODRL policies enforce usage restrictions at the protocol level
- Participant contexts provide isolated tenancy within EDC-V
2. Standards-Based Interoperability
- EDC-V / DSP for dataspace protocol compliance
- X-Road for cross-border government/regulated exchange
- OpenAPI 3.1 / AsyncAPI 3.0 for API contracts
- ODRL 2.2 for policy expression
3. Multi-Language Support
- TypeScript for type-safe domain models (shared-types package)
- Generated SDKs for TypeScript, Python, Go
- OpenAPI/GraphQL for language-agnostic integration
4. Observability by Default
- Structured logging (JSON, correlation IDs)
- Distributed tracing (W3C TraceContext)
- Metrics (Prometheus, RED/USE methods)
- Audit trails (immutable, tamper-evident)
5. Security in Depth
- Zero Trust network architecture
- mTLS for all service-to-service communication
- RBAC + ABAC for fine-grained authorization
- Encryption at rest (AES-256) and in transit (TLS 1.3)
System Components
API Layer
| Component | Technology | Port | Purpose |
|---|---|---|---|
| Traefik | Go | 80/443 | Reverse proxy, TLS termination, routing |
| Keycloak | Java | 8080 | Identity provider, OIDC, SAML, LDAP |
| Real Estate API | Node.js/Fastify | 4000 | REST/GraphQL/WebSocket API |
| EDC-V | Java/Spring | 8081-8083 | Dataspace connector (control/data/protocol) |
| X-Road | Go | 4001 | Security server for cross-org exchange |
| MCP Gateway | Node.js | 4002 | Model Context Protocol for AI |
Core Services
| Service | Responsibility | Key Technologies |
|---|---|---|
| Participant Management | Onboarding, KYC, roles, contexts | PostgreSQL, Keycloak |
| Asset Catalog | Dataset/service registration, discovery | EDC-V, Elasticsearch |
| Contract Negotiation | DSP negotiation protocol, ODRL policies | EDC-V, Policy Engine |
| Data Transfer | Secure data exchange, provenance | EDC-V, MinIO, Kafka |
| Policy Engine | ODRL evaluation, obligation tracking | Custom TypeScript engine |
| KYC/Compliance | Verification, risk scoring, audit | Automated + manual workflows |
| Valuation Engine | Automated valuations, comparables | ML models, market data |
| Project Management | Construction projects, permits, budgets | Workflow engine |
Data Layer
| Component | Version | Purpose | Configuration |
|---|---|---|---|
| PostgreSQL | 16 | Primary database, TimescaleDB for time-series | Primary + replicas, PITR |
| Redis | 7 | Caching, sessions, rate limiting | Cluster mode, Sentinel |
| MinIO | Latest | S3-compatible object storage | Erasure coding, versioning |
| Kafka | 3.6 | Event streaming, CDC | KRaft mode, tiered storage |
| Elasticsearch | 8.x | Full-text search, analytics | Hot/warm/cold tiers |
Deployment Patterns
Development (Docker Compose)
yaml
# infrastructure/docker/docker-compose.yml
services:
postgres: { image: postgres:16, ... }
redis: { image: redis:7, ... }
minio: { image: minio/minio:latest, ... }
kafka: { image: apache/kafka:3.6, ... }
keycloak: { image: quay.io/keycloak/keycloak:24, ... }
traefik: { image: traefik:v3, ... }
# ... applicationsStaging/Production (Kubernetes)
yaml
# infrastructure/helm/real-estate-platform/
# - Chart.yaml
# - values.yaml (configurable)
# - templates/
# - deployment.yaml
# - service.yaml
# - ingress.yaml
# - configmap.yaml
# - secret.yaml
# - hpa.yaml
# - pdb.yaml
# - networkpolicy.yamlMulti-Region (Production)
mermaid
graph TB
subgraph Region1[Primary Region - eu-west-1]
LB1[Load Balancer]
K8s1[Kubernetes Cluster]
PG1[(PostgreSQL Primary)]
Redis1[(Redis Primary)]
MinIO1[(MinIO)]
Kafka1[Kafka Cluster]
end
subgraph Region2[Secondary Region - eu-central-1]
LB2[Load Balancer]
K8s2[Kubernetes Cluster]
PG2[(PostgreSQL Replica)]
Redis2[(Redis Replica)]
MinIO2[(MinIO Replica)]
Kafka2[Kafka MirrorMaker]
end
Users --> LB1
Users -.-> LB2
LB1 --> K8s1
LB2 --> K8s2
PG1 -.->|Async Replication| PG2
Redis1 -.->|Replication| Redis2
MinIO1 -.->|Site Replication| MinIO2
Kafka1 -.->|MirrorMaker| Kafka2Network Topology
┌─────────────────────────────────────────────────────────────┐
│ Internet │
└─────────────────────────┬───────────────────────────────────┘
│
┌───────────▼───────────┐
│ Traefik v3 │ (TLS Termination, WAF, Rate Limit)
│ (DMZ / Public) │
└───────────┬───────────┘
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ API Gateway │ │ EDC-V Proxy │ │ X-Road GW │
│ (Internal) │ │ (Internal) │ │ (Internal) │
└───────┬───────┘ └───────┬───────┘ └───────┬───────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ Service Mesh (mTLS) │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │RealEst. │ │ EDC-V │ │ X-Road │ │ MCP │ ... │
│ │ API │ │ │ │ │ │ Gateway │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
└───────┼───────────┼─────────┼──────────┼──────────────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ Data Layer │
│ PostgreSQL ◄──► Redis ◄──► MinIO ◄──► Kafka ◄──► ES │
└─────────────────────────────────────────────────────────────┘Scaling Strategy
Horizontal Scaling
| Component | Scaling Trigger | Max Replicas |
|---|---|---|
| Real Estate API | CPU > 70%, RPS > 1000 | 20 |
| EDC-V Protocol | Concurrent negotiations > 50 | 10 |
| X-Road | Concurrent connections > 1000 | 5 |
| MCP Gateway | Active sessions > 500 | 15 |
| Workers (async) | Queue depth > 100 | 50 |
Database Scaling
- Read Replicas: 3+ for query distribution
- Connection Pooling: PgBouncer (1000+ connections)
- Partitioning: Time-series data by month (TimescaleDB)
- Sharding: By participant_context_id for multi-tenancy
Cache Strategy
- L1 (In-Memory): Hot data, < 1ms latency
- L2 (Redis): Session data, rate limits, < 5ms latency
- CDN: Static assets, API responses (Cache-Control)
Disaster Recovery
RPO/RTO Targets
| Tier | RPO | RTO | Strategy |
|---|---|---|---|
| Critical (PostgreSQL, Kafka) | < 1 min | < 15 min | Sync replication, auto-failover |
| Important (Redis, MinIO) | < 5 min | < 1 hour | Async replication, manual failover |
| Standard (Elasticsearch) | < 1 hour | < 4 hours | Snapshot restore |
Backup Schedule
bash
# PostgreSQL: Continuous (WAL-G) + Daily logical
# MinIO: Daily incremental, weekly full (site replication)
# Redis: RDB snapshots every 60s + AOF
# Kafka: MirrorMaker to secondary cluster
# Config/Secrets: GitOps (ArgoCD) + Vault backupsNext: System Components for detailed service specifications, or Data Flow for message flows.