Find Global and Rolling Top-K URLs Under a Memory Limit

Last updated: September 5, 2026

Quick Overview

The question asks the candidate to design a system that can efficiently find the global Top K URLs and the Top K URLs accessed in the last 24 hours, all while operating under a memory constraint.

Oracle
System Design
Software Engineer
Oracle
September 5, 2026
Software Engineer
Onsite
System Design
Medium

0

0

8 solved


The question asks the candidate to design a system that can efficiently find the global Top K URLs and the Top K URLs accessed in the last 24 hours, all while operating under a memory constraint.

This question is typically asked during the onsite interview round to evaluate the candidate's system design capabilities, especially in handling large datasets with limited resources. The interviewer is looking for a structured approach to system design, including trade-offs and potential solutions for memory constraints. The focus is on the candidate's ability to think critically about system architecture and data processing methods.

What the Interviewer Expects
  • Clear explanation of requirements and constraints
  • High-level design of the system architecture
  • Discussion of trade-offs involved in the design
  • Pseudocode implementation for key components
  • Consideration of scalability and performance
Key Topics to Cover
System Design
Memory Constraints
Trade-offs
Data Processing
Scalability
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you handle data ingestion and storage?
  • What algorithms would you use for finding the Top K URLs?
  • How would you ensure the system scales with increasing data volume?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

The goal is to find the global Top K URLs and the Top K URLs accessed in the last 24 hours under memory constraints. We need to consider the volume of URL access logs and the limitations on memory usa...

High-Level Design

The system can be designed with two main components: a batch processing module for global Top K URLs and a streaming module for the last 24 hours' Top K URLs. We can use a distributed processing frame...


Submit Your Answer
Markdown supported

Related Questions