PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Brex

Design Points-from-Transactions Service

Last updated: Apr 23, 2026

Quick Overview

This question evaluates system design and distributed-systems competency, focusing on transaction processing, idempotency and deduplication, monetary precision and rounding, consistency models, data modeling, and operational controls like observability and fraud prevention.

  • hard
  • Brex
  • System Design
  • Software Engineer

Design Points-from-Transactions Service

Company: Brex

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Design a scalable service that converts purchase transactions in USD to loyalty points at a fixed rate of 1 dollar = 1.5 points. Cover API design (ingest transactions, query balances, redeem points), idempotency and deduplication, precision and rounding strategy, consistency model (eventual vs. strong), data model and schema, prevention of double counting and fraud, real-time and batch processing, backfill and correction flows, scaling and partitioning strategy, observability, and rollout/testing plans.

Quick Answer: This question evaluates system design and distributed-systems competency, focusing on transaction processing, idempotency and deduplication, monetary precision and rounding, consistency models, data modeling, and operational controls like observability and fraud prevention.

Related Interview Questions

  • Build AI-Assisted Full-Stack Transactions App - Brex (medium)
Brex logo
Brex
Aug 14, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
41
0

Design a Scalable Loyalty Points Service (USD → Points at 1 USD = 1.5 Points)

You are designing a service that awards loyalty points for purchase transactions denominated in USD at a fixed conversion rate of 1 USD = 1.5 points. The service must support awarding, querying balances, and redeeming points at scale, with correctness and auditability.

Assume transactions arrive from a card/payments platform and that points should be awarded only for posted/settled transactions (not authorizations). Redemption must prevent double-spend.

Cover the following:

  1. API Design
    • Ingest transactions for awarding points
    • Query balances
    • Redeem points
  2. Idempotency and Deduplication
    • How to ensure exactly-once awarding and idempotent client retries
  3. Precision and Rounding
    • Units to store money and points, conversion math, rounding policy
  4. Consistency Model
    • What is strong vs. eventual, and where to apply each
  5. Data Model and Schema
    • Tables, keys, indices, constraints, and how balances are computed
  6. Prevention of Double Counting and Fraud
    • Controls for duplicate events, replay, redemptions, and abuse
  7. Real-time and Batch Processing
    • Streaming path for new transactions and batch backfills
  8. Backfill and Correction Flows
    • Handling refunds, chargebacks, retroactive fixes, and rate changes
  9. Scaling and Partitioning Strategy
    • Per-account ordering, sharding, and throughput considerations
  10. Observability
    • Metrics, logs, tracing, and audits to ensure correctness and SLAs
  11. Rollout and Testing Plans
    • Validation, shadowing, canaries, and guardrails

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Brex•More Software Engineer•Brex Software Engineer•Brex System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.