Web · Reports service
Heartopsy
A Django and Celery microservice that generates tier-gated PDF reports asynchronously. It renders a four-page watermarked document end to end in 937 ms and delivers it through AES-256 encrypted, time-limited presigned S3 URLs.

- Four-page render
- 937 ms
- Subscription tiers
- 4
- Stack
- Django · Celery · Python · Jinja2 · wkhtmltopdf · AWS S3
What we built
A paywall that cannot leak
A config-driven map from four subscription tiers to report sections: free users get a teaser plus an upgrade CTA, paid tiers unlock measurements, profiles and growth plans. An automated leakage test scans rendered HTML so premium content never reaches free accounts.
Composable documents
11 Jinja2 partials driven by one design-token file: repeating headers and footers, "Page X of Y" numbering and configurable confidential watermarks.
Measured, not guessed
Per-stage timing and correlation-ID logging as structured JSON, enforcing a sub-3-second render budget and isolating the PDF engine as 97% of latency.
Failures with the right status code
Render failures are classified as transient, content or system and mapped to 503, 422 or 500, with automatic retry and exponential backoff.