První termín pro DPP v EU (Baterie): 106 dní Zajistěte soulad hned
Jazyk
EN DE FR IT ES NL PL BG CS DA EL ET FI HR HU LT LV MT PT RO SK SL SV
Produkt
Funkce Poprodejní servis Jak to funguje Demo Enterprise Ceny
Sektory
Všechna odvětví Textil Elektronika Baterie
Zdroje
Blog Porovnat software pro DPP Požadavky podle zemí Posouzení připravenosti Kontrola ekologických tvrzení Ke stažení zdarma Slovníček
Společnost
Partneři Kontakt
Přihlásit se Začít zdarma
Blog / Technické / DPP Data Architecture: Designing for Sca...
TechnickéV angličtině

DPP Data Architecture: Designing for Scalability and Compliance

MyProductPassport · zář 10, 2025 · Aktualizováno lis 03, 2026 · 11 min čtení

Tento článek zatím není dostupný ve vašem jazyce, proto se zobrazuje v angličtině.

The Unique Architectural Challenges of DPP Systems

Digital Product Passport systems face a distinctive combination of architectural challenges that distinguish them from conventional enterprise applications. They must serve vastly different audiences, consumers scanning QR codes expect sub-second response times, whilst regulatory systems require comprehensive, machine-readable data exports. They must store heterogeneous data, structured compliance metrics alongside unstructured documents and media. And they must scale both horizontally (millions of products across thousands of organisations) and temporally (maintaining passport data for the entire lifecycle of products that may last decades).

The ESPR regulation adds specific architectural constraints. Passport data must remain accessible for at least ten years after the last unit of a product model is placed on the market. Data must be available in multiple formats (HTML, JSON-LD, JSON) via content negotiation. Access control must enforce different visibility tiers for different stakeholder types. And the system must support GS1 Digital Link resolution, meaning every product's passport must be reachable via a standardised URI pattern.

These requirements demand thoughtful architectural decisions made early in the design process. Retrofitting scalability, multi-tenancy, or compliance features onto an architecture not designed for them is prohibitively expensive. This article examines the key architectural patterns and trade-offs for building DPP systems that are both scalable and compliant.

Data Modelling for Product Passports

The data model is the foundation of any DPP system. It must accommodate the diversity of product types covered by the ESPR, from batteries with electrochemical performance data to textiles with fibre composition breakdowns, whilst maintaining a consistent structure that supports cross-product queries and compliance validation.

A flexible schema approach works best. The core passport entity captures universal attributes: product identifier (GTIN), manufacturer, model name, creation date, and compliance status. Product-category-specific data is stored in a structured JSON column or a related key-value store, allowing different product types to have different attribute sets without requiring schema migrations for each new product category.

The relationship model for DPP data includes several important patterns:

  • Product-to-passport: typically one-to-one for simple products, but one-to-many for products sold in multiple jurisdictions requiring variant passports
  • Passport-to-documents: one-to-many, linking compliance certificates, test reports, and material declarations
  • Passport-to-materials: many-to-many through a composition table that records material type, percentage, and source
  • Product-to-components: hierarchical, enabling nested bill-of-materials structures where components have their own passports
  • Organisation-to-products: many-to-many through a multi-tenant ownership model

For serialised products, the data model must distinguish between product models (abstract definitions) and product instances (individual units with unique serial numbers). A product model has one passport template; each serialised instance may have additional instance-specific data such as manufacturing date, batch number, and quality test results. Our product serialisation guide covers these patterns in detail.

Multi-Tenant Architecture Patterns

DPP platforms serve multiple organisations, each with their own products, users, and compliance requirements. Multi-tenancy is the architectural pattern that enables this shared infrastructure whilst maintaining data isolation between tenants.

Three multi-tenancy models are commonly used for DPP systems. Shared database with tenant discriminator is the simplest approach: all tenants' data resides in the same database, with a tenant identifier column on every table. Queries are automatically scoped to the current tenant through middleware or query scopes. This approach maximises infrastructure efficiency and simplifies deployment, but requires rigorous discipline to prevent cross-tenant data leakage.

Schema-per-tenant provides stronger isolation by giving each tenant their own database schema. Queries cannot accidentally access another tenant's data because the tables themselves are separated. This approach simplifies compliance with data residency requirements (different schemas can be in different regions) but complicates schema migrations and reporting that spans tenants.

Database-per-tenant offers the strongest isolation and the greatest flexibility for per-tenant customisation, but at the highest operational cost. Each tenant has an independent database that can be backed up, restored, and scaled independently. This approach is typically reserved for enterprise customers with specific security or compliance requirements that demand physical data separation.

For most DPP platforms, the shared database approach with strong application-level tenant isolation provides the best balance of efficiency, security, and operational simplicity. The key is implementing tenant scoping as a cross-cutting concern, enforced automatically by the framework rather than manually by each query, so that no code path can accidentally bypass tenant boundaries.

Scalability Patterns for Read-Heavy Workloads

DPP systems are overwhelmingly read-heavy. A product passport might be written once and updated occasionally, but it could be read thousands of times, by consumers, search engines, regulatory crawlers, and supply chain partners. This read-write asymmetry should drive architectural decisions about caching, replication, and data distribution.

A multi-layer caching strategy is essential. Application-level caching stores frequently accessed passport data in an in-memory store like Redis, with cache invalidation triggered by passport updates. CDN caching serves static passport assets (QR codes, PDF exports, HTML renders) from edge locations close to consumers. HTTP caching using ETags and Cache-Control headers allows clients to cache passport data locally, reducing server load and improving response times.

Read replicas provide database-level read scaling. Write operations target the primary database, whilst read operations are distributed across replicas. For DPP systems with global audiences, geo-distributed read replicas can serve passport data from the nearest data centre, reducing latency for international users. The replication lag, the brief delay between a write on the primary and its availability on replicas, is typically acceptable for DPP data, where updates are infrequent and eventual consistency within seconds is sufficient.

For very large deployments, consider a CQRS (Command Query Responsibility Segregation) pattern. Write operations (creating and updating passports) go through a command pipeline that validates data and updates the authoritative store. Read operations are served from a denormalised read model optimised for fast retrieval. The read model might store complete passport JSON documents alongside pre-rendered HTML fragments, eliminating the need for complex joins at query time.

Content Negotiation and API Architecture

The ESPR requires DPP data to be available in multiple formats, served from the same identifier URI. A single GS1 Digital Link must resolve to HTML for consumers, JSON-LD for semantic web applications, and plain JSON for conventional API clients. This content negotiation requirement has significant architectural implications.

The resolver component sits at the front of the DPP architecture, handling incoming requests for product passport URIs. It examines the HTTP Accept header to determine the desired response format and routes the request accordingly. A request with Accept: text/html returns a rendered passport page. A request with Accept: application/ld+json returns structured JSON-LD. A request without a specific Accept header defaults to HTML for browser compatibility.

This architecture benefits from separating the data retrieval layer from the presentation layer. The data layer fetches the passport data from the database or cache. The presentation layer transforms that data into the requested format. New formats can be added by implementing new presenters without modifying the data layer. This separation also enables format-specific optimisations, the HTML presenter can include lazy-loaded images and interactive elements, whilst the JSON-LD presenter focuses on semantic correctness and vocabulary compliance.

For organisations implementing their own DPP APIs, our guide to JSON-LD and Schema.org for DPPs provides essential context on structuring the linked data response format correctly.

Data Lifecycle and Long-Term Archival

The ESPR mandates that DPP data must remain accessible for at least ten years after the last unit of a product model is placed on the market. For durable goods with long product lifespans, this could mean maintaining accessible data for thirty years or more. This long-term archival requirement fundamentally shapes storage architecture decisions.

A tiered storage architecture balances accessibility with cost. Active passports, for products currently in production or recently placed on the market, reside in the primary database with full caching and replication. Inactive passports, for products no longer in production but still within the retention period, can be migrated to lower-cost storage with reduced performance characteristics. Archived passports, beyond the mandatory retention period, can be moved to cold storage for minimal-cost long-term preservation.

Data format longevity is a crucial consideration. The JSON-LD format used for DPP data is well-suited to long-term archival because it is self-describing (the @context links define the vocabulary used) and based on open standards. However, the linked context URIs must remain resolvable for archived data to be interpretable. Consider embedding full context definitions within archived documents rather than relying on external URI resolution.

Migration strategies must account for schema evolution over the retention period. As ESPR delegated acts define new data requirements and existing requirements are refined, the passport data model will evolve. Archived passports should be stored with their original schema version and a version identifier, allowing future systems to interpret historical data correctly even after the schema has changed multiple times.

Compliance Architecture and Audit Trails

Regulatory compliance is not merely a data problem, it is an architectural concern that pervades the entire DPP system. The architecture must ensure that compliance is verifiable, auditable, and provable at any point in time.

Immutable audit logs record every change to passport data: who changed what, when, why, and from what previous value. These logs should be append-only (no deletions or modifications) and stored separately from operational data to prevent a compromised application from covering its tracks. Event sourcing, storing the complete history of changes as a sequence of events rather than just the current state, provides the strongest audit guarantee.

Compliance validation should be embedded in the data pipeline, not bolted on as an afterthought. Every passport creation or update passes through a validation engine that checks against the applicable ESPR delegated act requirements. The validation result is stored alongside the passport data, providing a timestamped compliance assessment that can be presented to regulators on demand.

The architecture should also support compliance reporting at aggregate levels. Regulators may request statistics on compliance rates across product categories, identification of non-compliant products, or trend analysis of environmental metrics. These reporting queries can be demanding on the primary database, so a dedicated analytics layer, populated by change data capture from the operational database, is recommended for complex reporting workloads.

Infrastructure and Deployment Architecture

The deployment architecture for a DPP system must balance availability, performance, cost, and regulatory requirements. The ESPR implies high availability, if passport data is inaccessible, products cannot be verified, potentially disrupting commerce. A target of 99.9 per cent uptime is a reasonable baseline, requiring redundant infrastructure across multiple availability zones.

Containerised deployments using Docker and Kubernetes provide the operational flexibility to scale individual components independently. The passport resolver, which handles the highest request volumes, can be scaled horizontally by adding container replicas behind a load balancer. The validation engine, which is computationally intensive but invoked less frequently, can run on dedicated nodes with appropriate resource allocations.

Data residency requirements may constrain deployment geography. If the ESPR or national implementing legislation requires that passport data for products sold in specific markets be stored within those jurisdictions, the deployment architecture must support geo-distributed data storage. This can be achieved through regional database clusters with cross-region replication or through a federated architecture where each region operates semi-independently.

For teams exploring DPP implementation, the complete guide to Digital Product Passports provides the conceptual foundation that informs these architectural decisions. Understanding the regulatory requirements, stakeholder needs, and data flows is a prerequisite for making sound architectural choices.

Evolutionary Architecture and Future-Proofing

The ESPR framework will evolve significantly over the coming years as delegated acts define requirements for additional product categories and as implementation experience reveals areas for improvement. A DPP architecture must be designed to accommodate this evolution without requiring wholesale rebuilds.

Key future-proofing strategies include schema-agnostic storage that can accommodate new data elements without migrations, pluggable validation engines that can be updated as regulatory requirements change, versioned APIs that support backward compatibility whilst enabling new capabilities, and modular architectures where individual components can be replaced independently.

Consider building the architecture around domain events rather than direct service-to-service coupling. When a passport is created, an event is published. When a compliance check passes, an event is published. New capabilities can be added by subscribing to existing events without modifying the services that produce them. This event-driven approach provides natural extension points for future requirements that cannot be anticipated today.

The most resilient DPP architectures treat uncertainty as a design parameter. They accept that requirements will change, that new stakeholders will emerge, and that the scale of DPP data will grow beyond current projections. By designing for change rather than against it, these architectures transform regulatory evolution from a disruptive force into an opportunity for continuous improvement.

Odkaz zkopírován do schránky
MP

MyProductPassport

Digitální produktové pasy

Pomáháme firmám zorientovat se v požadavcích na digitální produktový pas, souladu s ESPR a transparentnosti udržitelných výrobků.