Modern data platform
Context
Data lives in spreadsheets, the production database and manual exports. Every report is rebuilt from scratch, and nobody can say where a number came from.
01
Sources
- Transactional database
- CRM and ERP
- Third-party APIs
- Product events
02
Ingestion
- CDC for databases
- Scheduled batch
- Streaming for events
03
Layers
- Raw: faithful copy of source
- Cleansed: typed and validated
- Serving: modeled by domain
04
Transformation
- Versioned models
- Contract tests
- Traceable lineage
05
Consumption
- BI and dashboards
- Reverse ETL to CRM
- Features for models
Design decisions
The raw layer is never changed, so history can be reprocessed when a rule changes.
Every published model has a contract test. If the source changes, the pipeline breaks before the dashboard does.
Nobody queries the raw layer directly. If someone needs to, a model is missing.
Server-side tracking with consent
Context
Blockers and cookie limits reduced the conversions recorded. Each platform shows a different number, and legal needs consent and LGPD compliance.
01
Browser
- Site data layer
- Consent banner
- Consent Mode v2
02
Own collector
- First-party domain endpoint
- Server-side container
- Enrichment and validation
03
Policy
- Consent signal per purpose
- Personal data redaction
- Drop what wasn't consented
04
Destinations
- GA4
- Ad platform Conversions APIs
- CRM
05
Warehouse
- Raw event retained
- Own attribution model
- Reconciliation with finance
Design decisions
Consent is denied by default. No tag fires before opt-in, including on this site.
The raw event reaches the warehouse before the ad platforms. That is how you audit the gap between them.
Server-side recovers signal but does not bypass consent. Anyone promising that is selling legal risk.
Delivery pipeline
Context
A deploy has become a risk event, scheduled for Friday night. There is no reliable test environment, and the first news of a failure usually comes from the customer.
01
Commit
- Short-lived branch
- Mandatory review
- Type and lint checks
02
Integration
- Unit tests
- Integration tests
- Reproducible build
03
Ephemeral environment
- One environment per pull request
- Synthetic data
- End-to-end test
04
Production
- Progressive rollout
- Feature flag
- One-command rollback
05
Observability
- Business metrics, not just CPU
- Alerts with an owner
- Blameless post-mortem
Design decisions
If rolling back isn't cheaper than fixing forward, the pipeline is wrong.
An alert without an owner turns into noise within two weeks. Every alert has someone responsible.
One environment per pull request costs less than a night of manual rollback.
Let's talk about your project.
An initial conversation to understand the context and assess how we can help.