PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/System Design/Roblox

Design a scheduled payment system

Last updated: May 11, 2026

Quick Overview

This question evaluates proficiency in designing a reliable, scalable scheduled payment service, testing competencies in distributed systems, API design, scheduling and execution workflows, idempotency and deduplication, time semantics, transactional consistency, security and compliance, and operational monitoring.

  • hard
  • Roblox
  • System Design
  • Software Engineer

Design a scheduled payment system

Company: Roblox

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design a scheduled payment system that lets users schedule a future-dated payment and cancel a pending payment before execution. Specify REST/gRPC APIs to schedule, query status, and cancel; the data model and indexing; how jobs are scheduled and executed (e.g., scheduler, message queue, worker fleet); idempotency and deduplication; ordering and time accuracy (time zones, daylight saving, clock drift); failure handling with retries, backoff, and dead-letter queues; consistency and transactional guarantees with the payment gateway; security and compliance (PCI, encryption, PII); scaling, partitioning, and high availability; monitoring, auditing, and alerting; disaster recovery; and SLAs and capacity estimates.

Quick Answer: This question evaluates proficiency in designing a reliable, scalable scheduled payment service, testing competencies in distributed systems, API design, scheduling and execution workflows, idempotency and deduplication, time semantics, transactional consistency, security and compliance, and operational monitoring.

Related Interview Questions

  • Design Multi-Dimensional Request Rate Limiting - Roblox (easy)
  • Design a Scalable Likes System - Roblox (medium)
  • Design favorites and social game recommendations - Roblox (medium)
  • Design a rate limiter - Roblox (medium)
  • Design a Scalable Like Counter - Roblox (medium)
Roblox logo
Roblox
Sep 6, 2025, 12:00 AM
Software Engineer
Onsite
System Design
13
0

System Design: Scheduled Payment Service

Context

You are designing a backend service that allows end users to:

  • Schedule a payment for a future date/time.
  • Query the status of any scheduled payment.
  • Cancel a payment that has not yet executed.

Assume payments are processed through an external payment gateway, and the system must work reliably at scale across multiple regions.

Requirements

Design the system and cover the following areas:

  1. APIs
  • Specify REST and/or gRPC APIs for:
    • Schedule a payment
    • Query payment status
    • Cancel a pending payment
  • Include request/response schema, idempotency, and error handling.
  1. Data Model and Indexing
  • Propose tables/collections and key fields.
  • Show indexes required for scheduling queries, user lookups, and idempotency.
  1. Scheduling and Execution
  • Describe how jobs are scheduled and executed (e.g., scheduler, message queue, worker fleet).
  • Explain the flow from “scheduled” to “executed”, including the role of delay queues and worker coordination.
  1. Idempotency and Deduplication
  • Prevent duplicate creation of the same scheduled payment.
  • Ensure exactly-once semantics for payment submission to the gateway.
  1. Time Semantics
  • Ordering and time accuracy requirements.
  • Time zones, daylight saving transitions, and clock drift handling.
  1. Failure Handling
  • Retries with exponential backoff and jitter.
  • Dead-letter queues and operational procedures.
  1. Consistency and Transactions
  • Guarantees when interacting with the payment gateway.
  • State transitions and transactional boundaries.
  1. Security and Compliance
  • PCI considerations, encryption, and PII handling.
  • AuthN/Z for APIs and secrets management.
  1. Scale, Partitioning, and High Availability
  • Sharding/partitioning strategy and horizontal scaling of components.
  • Leader election, regional failover, and quorum concerns.
  1. Monitoring, Auditing, and Alerting
  • Metrics, logs, traces; audit trail design; alerting thresholds.
  1. Disaster Recovery
  • Backups, RPO/RTO targets, and regional recovery strategy.
  1. SLAs and Capacity Estimates
  • Availability, latency, accuracy SLAs.
  • Back-of-envelope capacity and cost drivers.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Roblox•More Software Engineer•Roblox Software Engineer•Roblox System Design•Software Engineer System Design
PracHub

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