PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Bytedance

Design a TinyURL-like short link service

Last updated: Mar 29, 2026

Quick Overview

This question evaluates competency in system design and distributed systems, covering API design, data modeling, unique key-generation and collision handling, caching and storage choices, TTL/expiration semantics, and scalability/high-availability considerations.

  • medium
  • Bytedance
  • System Design
  • Software Engineer

Design a TinyURL-like short link service

Company: Bytedance

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Design a TinyURL-like service that generates short URLs and redirects users to the original long URLs. Requirements: - Provide APIs to create a short link and to resolve (redirect) a short link. - Short links must be reasonably short (e.g., 6–10 characters) and unique. - The system should handle collisions (e.g., if hashing or random IDs collide). - Support optional TTL/expiration for short links. - The service should be scalable and highly available. Discuss data model, key generation strategy, storage/cache (e.g., Redis), collision handling, and how redirects work end-to-end.

Quick Answer: This question evaluates competency in system design and distributed systems, covering API design, data modeling, unique key-generation and collision handling, caching and storage choices, TTL/expiration semantics, and scalability/high-availability considerations.

Related Interview Questions

  • Design a Distributed Rate Limiter - Bytedance (medium)
  • Design an RBAC Relational Schema - Bytedance (medium)
  • Design Real-Time Trending Likes - Bytedance (medium)
  • Design a Real-Time Auction Platform - Bytedance (medium)
  • Design a High-Frequency Job Scheduler - Bytedance (medium)
Bytedance logo
Bytedance
Feb 28, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
5
0

Design a TinyURL-like service that generates short URLs and redirects users to the original long URLs.

Requirements:

  • Provide APIs to create a short link and to resolve (redirect) a short link.
  • Short links must be reasonably short (e.g., 6–10 characters) and unique.
  • The system should handle collisions (e.g., if hashing or random IDs collide).
  • Support optional TTL/expiration for short links.
  • The service should be scalable and highly available.

Discuss data model, key generation strategy, storage/cache (e.g., Redis), collision handling, and how redirects work end-to-end.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Bytedance•More Software Engineer•Bytedance Software Engineer•Bytedance 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.