Nova-Rewards

ADR 0002: PostgreSQL System of Record with Redis Operational Cache

Status

Accepted

Context

Nova Rewards must track merchants, users, campaigns, transactions, point transactions, reward issuances, redemptions, webhooks, and contract events. These records need relational constraints, historical auditability, migrations, and queryable state for dashboards and support workflows. The platform also needs low-latency counters, queues, and cached leaderboard/campaign views.

Decision

Use PostgreSQL as the system of record and Redis for operational acceleration:

Consequences

Positive:

Negative: