Projections for gamification in a social app
summary
Company-internal social app implements achievements by projecting EventStore DB card finished events into per-achievement subscriptions using catch-up subscriptions and storing commit checkpoints; each achievement runs as one subscription per achievement and emits idempotent "achievement earned" events. It works in production but reveals concrete issues: deck data lives in JSON (no event history) and finished events lack deck IDs, timestamps arrive malformed occasionally, and event ordering requires defensive checks and idempotency logic to avoid regressions.
AI-written summary · about
