Presented at DrupalCon Vienna 2025 (14-17 October 2025), this session walks through the architecture, implementation, and load-testing results of a high-traffic B2B e-Verification platform built with headless Drupal and Next.js.
Architectural Overview#
The platform powers B2B discount verification across web, call-center, and retail channels for a major North American telecom company. Organisations (such as corporate, affiliate, small-business, and employee groups) map to offers and add-ons through email or proof-based verification workflows, issuing codes to external coupon and redemption systems.
High-Level Design#
- Frontend apps: Multiple Next.js applications (Corporate App, Affiliate App, Small Business App) consuming Drupal over JSON:API.
- Drupal core domain: Customer Management, Offer Management, Notification System, Coupon Code Management, Scheduling, I&AM, Analytics, and Reporting.
- External integrations: Coupon System, Redeem System, Analytics, and Reporting services.
Implementation Highlights#
- Custom Content Entities (Entity API) and Custom Fields (Field API) with
DataDefinitionproperties for lean storage and traversal. - JSON:API Resources exposing structured submission and offer payloads.
- Custom API Authentication via
AuthenticationProviderInterfacewith HMAC-SHA256 token verification (Crypt::hmacBase64andhash_equals).
Scale & Load Test Metrics (JMeter / k6)#
- Data volume: ~1.5M Customer entities (~45 fields), ~7K Organisations (~60 fields), ~1K Offers (~30 fields), ~1K Add-ons (~20 fields).
- Load test: ~100 concurrent threads over 10 minutes, reaching ~7,500 rpm throughput with ~500 ms average response time (~22,000 total requests).
Lessons Learned & Developer Tips#
- Prefer a single-entity, multi-bundle model for Product vs Service variations.
- Build role-specific admin landing pages and Views reporting so editors only see what they need.
- Ship an installation profile with default config, content, and translations so local setup requires no database dump.
- Use Node as Configuration Form (
paramconverter.jsonapi.entity_uuid) and a custom Masquerade Block for testing role permissions quickly. - Key modules used and contributed back: JSON:API Resources, Easy Breadcrumb, Easy Email, HTTP Client Manager, Views Data Export, Entity Reference Views, Codes Pool, Inline Translation, and Permission Group.
