Enterprise-grade reference architecture for Customer.io integration with proper separation of concerns, event-driven processing, and infrastructure as code.
Create a CustomerIOService class extending EventEmitter with typed config, Track and App API clients, and lifecycle events for identify, track, and transactional operations.
Implement Kafka-based event processing with topics for identify, track, and transactional operations, plus dead letter queue for failures.
Build a UserMessagingRepository that syncs user data from your database to Customer.io and manages messaging preferences.
Create an EventEmitter-based webhook handler with signature verification, per-event-type listeners, and wildcard streaming to data warehouse.
Write Terraform for GCP Secret Manager secrets, Cloud Run service, Pub/Sub topics, and BigQuery tables for event analytics.
For detailed implementation code and Terraform configurations, load the reference guide:
Read(${CLAUDE_SKILL_DIR}/references/implementation-guide.md)
| Issue | Solution |
|---|---|
| Event processing failure | Routes to dead letter queue |
| Secret rotation needed | Update via Terraform + secrets manager |
| Webhook signature invalid | Verify secret matches dashboard |
After implementing architecture, proceed to customerio-multi-env-setup for multi-environment configuration.
Basic usage: Apply customerio reference architecture to a standard project setup with default configuration options.
Advanced scenario: Customize customerio reference architecture for production environments with multiple constraints and team-specific requirements.