Beyond the database: building a decoupled analytics layer for Drupal

29 Sep 2026, 12:25 pm (UTC)
45 Minutes

Drupal analytics often query the application database directly, which can make reporting slow, brittle and tightly coupled to the CMS. An alternative architecture has Drupal emit structured activity events using the CloudEvents specification and send them asynchronously through Kafka, keeping analytics decoupled from Drupal’s request cycle.

The event model serves both the reporting layer and a webhooks system, allowing multiple consumers without changes in Drupal. The session covers the choice of custom event code over ECA, production experience, and practical considerations including scaling, historical backfills and tenant isolation.

Other Sessions