Design a Fleet Fuel Payment Monitoring Platform
Ingest fleet fuel-card CSV files, expose trustworthy transaction history, and surface suspicious payments for review.
Problem statement
For this exercise, assume fleet administrators upload CSV files containing fuel-card transactions. The platform must validate and ingest each file, provide a searchable history of where fuel payments occurred, and surface suspicious transactions for human review.
A retried upload must not create duplicate transactions, and the system must preserve the raw submitted evidence and an auditable history of later fraud decisions. Design the service boundary, durable data model, APIs, processing path, and operational controls.
Card authorization, payment settlement, and automatic account blocking are outside scope.
What to build
- Fleet administrators can upload a fuel-transaction CSV and observe accepted, rejected, and duplicate rows.
- Authorized users can search transactions by fleet, vehicle or card, time range, merchant, and review state.
- The platform evaluates accepted transactions for suspicious patterns and supports an auditable human review decision.
At scale
- For this exercise, assume 20,000 fleets upload 200 million transaction rows per day, with files up to 2 GB.
- For this exercise, acknowledge an upload within 2 seconds and make 99% of valid rows searchable within 10 minutes.
- For this exercise, retain normalized transactions and review history for seven years and raw upload objects for 90 days.
- For this exercise, tolerate a regional worker outage without losing accepted uploads or silently applying a row twice.