PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Rippling

Design delivery driver payment tracker

Last updated: May 1, 2026

Quick Overview

This question evaluates object-oriented API design, time-based state management, monetary calculation, and data modeling competencies in the System Design domain.

  • medium
  • Rippling
  • System Design
  • Software Engineer

Design delivery driver payment tracker

Company: Rippling

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

##### Question Design and implement an object-oriented system for tracking food-delivery driver payments with: 1) add_driver(driver_id, usd_hourly_rate); 2) record_delivery(driver_id, start_time, end_time) using a time format offering ≥1-second precision (deliveries ≤3 h, recorded post-completion); 3) get_total_cost(); then extend with: 4) pay_up_to(pay_time) to mark deliveries paid up to the given Unix epoch time; and 5) get_total_cost_unpaid(). Discuss storage choices, assumptions, OOP practices, and any deviations from production.

Quick Answer: This question evaluates object-oriented API design, time-based state management, monetary calculation, and data modeling competencies in the System Design domain.

Related Interview Questions

  • Design a personalized news aggregator - Rippling (medium)
  • Design a Scalable News Feed - Rippling (medium)
  • Design Scalable Expense Violation Processing - Rippling (hard)
  • Design a news aggregator like Google News - Rippling (medium)
  • Design several large-scale systems - Rippling (hard)
Rippling logo
Rippling
Aug 4, 2025, 10:55 AM
Software Engineer
Technical Screen
System Design
29
0

Food-Delivery Driver Payments System

Context

You are designing a small, object-oriented component to track and pay food-delivery drivers based on their hourly rate and completed delivery durations. Deliveries are recorded only after completion and never exceed 3 hours.

Assume all times are UTC and recorded with at least 1-second precision using Unix epoch time.

Requirements

Implement an object-oriented API with the following methods:

  1. add_driver(driver_id, usd_hourly_rate)
    • Registers a driver and their current hourly rate in USD.
  2. record_delivery(driver_id, start_time, end_time)
    • Records a completed delivery for the driver.
    • Time format must support ≥1-second precision.
    • Each delivery duration ≤ 3 hours.
    • Deliveries are recorded only after completion (end_time ≤ now).
  3. get_total_cost()
    • Returns the total cost of all deliveries (paid and unpaid).

Then extend the system with:

  1. pay_up_to(pay_time)
    • Marks deliveries as paid if their end_time ≤ pay_time (Unix epoch time).
  2. get_total_cost_unpaid()
    • Returns the total cost of all unpaid deliveries.

Discussion Prompts

  • Storage choices (in-memory vs. persistent), data modeling, and indexing.
  • Assumptions (time zone, precision, rate changes, rounding).
  • OOP practices (entities, services, repositories, immutability, interfaces).
  • Any sensible deviations from production for an interview-quality solution.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Rippling•More Software Engineer•Rippling Software Engineer•Rippling System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,500+ 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.