Skip to content

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 --> Observability

Design 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 ​

ComponentTechnologyPortPurpose
TraefikGo80/443Reverse proxy, TLS termination, routing
KeycloakJava8080Identity provider, OIDC, SAML, LDAP
Real Estate APINode.js/Fastify4000REST/GraphQL/WebSocket API
EDC-VJava/Spring8081-8083Dataspace connector (control/data/protocol)
X-RoadGo4001Security server for cross-org exchange
MCP GatewayNode.js4002Model Context Protocol for AI

Core Services ​

ServiceResponsibilityKey Technologies
Participant ManagementOnboarding, KYC, roles, contextsPostgreSQL, Keycloak
Asset CatalogDataset/service registration, discoveryEDC-V, Elasticsearch
Contract NegotiationDSP negotiation protocol, ODRL policiesEDC-V, Policy Engine
Data TransferSecure data exchange, provenanceEDC-V, MinIO, Kafka
Policy EngineODRL evaluation, obligation trackingCustom TypeScript engine
KYC/ComplianceVerification, risk scoring, auditAutomated + manual workflows
Valuation EngineAutomated valuations, comparablesML models, market data
Project ManagementConstruction projects, permits, budgetsWorkflow engine

Data Layer ​

ComponentVersionPurposeConfiguration
PostgreSQL16Primary database, TimescaleDB for time-seriesPrimary + replicas, PITR
Redis7Caching, sessions, rate limitingCluster mode, Sentinel
MinIOLatestS3-compatible object storageErasure coding, versioning
Kafka3.6Event streaming, CDCKRaft mode, tiered storage
Elasticsearch8.xFull-text search, analyticsHot/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, ... }
  # ... applications

Staging/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.yaml

Multi-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| Kafka2

Network 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 ​

ComponentScaling TriggerMax Replicas
Real Estate APICPU > 70%, RPS > 100020
EDC-V ProtocolConcurrent negotiations > 5010
X-RoadConcurrent connections > 10005
MCP GatewayActive sessions > 50015
Workers (async)Queue depth > 10050

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 ​

TierRPORTOStrategy
Critical (PostgreSQL, Kafka)< 1 min< 15 minSync replication, auto-failover
Important (Redis, MinIO)< 5 min< 1 hourAsync replication, manual failover
Standard (Elasticsearch)< 1 hour< 4 hoursSnapshot 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 backups

Next: System Components for detailed service specifications, or Data Flow for message flows.