Tagged articles
short URL
29 articles · Page 1 of 1
The article breaks down a real‑world architecture for a short‑URL service that must handle 12 billion entries and 40 k QPS, showing how to calculate capacity, compare generation algorithms, use Bloom filters for offline de‑duplication, and employ a three‑layer cache‑plus‑storage design to meet performance goals.
Bloom FilterHBasehigh concurrency
0 likes · 7 min read

This guide walks you through the reasons for a self‑hosted short‑URL system, the required environment, and step‑by‑step deployment using Docker containers or a standalone binary, plus Nginx reverse‑proxy configuration for production stability and security.
short URL
0 likes · 9 min read

This article walks through the challenges of handling millions of requests per second for a short‑URL service and presents a complete backend solution—including ID generation, Base62 encoding, cache‑layer design, Nginx redirect optimization, disaster‑recovery strategies, sharding, and performance test results—while providing Java code snippets and design principles for high‑throughput, resilient systems.
Javahigh concurrencyshort URL
0 likes · 11 min read

This article explains the concept of short‑URL redirection, its benefits, and provides a complete SpringBoot implementation—including database schema, entity, DAO, service, controller, and testing code—to convert long links into short, trackable links and handle redirects.
BackendJavaMyBatis
0 likes · 11 min read

This article explores the benefits of short URLs, explains their redirection mechanics, compares hash‑based and auto‑increment generation methods, and presents a high‑throughput architecture using OpenResty, Redis, and MySQL to handle massive traffic while ensuring reliability and scalability.
OpenRestyhashinghigh-performance
0 likes · 15 min read

This article explains the motivation, architecture, resource estimation, code generation algorithms, data modeling, database partitioning, caching strategies, and implementation details for building a scalable short URL system that handles billions of links and high QPS workloads.
backend architecturecode generationdatabase partitioning
0 likes · 17 min read

This article explains the principles, system design, key generation, encoding strategies, HTTP redirection techniques, and step‑by‑step Spring Boot project setup needed to build a reliable short‑link service for marketing and internal applications.
HTTP redirectKey generationbackend development
0 likes · 8 min read

The article details the background, design choices, compression code generation methods, database schema, high‑concurrency handling, and implementation of an enterprise‑grade short‑URL service that pre‑generates collision‑free codes to achieve high performance and secure redirection.
Base64 encodingSpringBoothash collision
0 likes · 19 min read

This article explains how to design a high‑performance short‑URL service capable of handling 1 million queries per second, covering system background, URL shortening principles, base‑62 encoding, distributed ID generation options, storage sharding, ambiguity checking with Bloom filters, multi‑level caching, and redirect handling.
Bloom Filterbackend architecturedistributed-id
0 likes · 20 min read

This article explains how to use Sina's short URL API to convert long links into short t.cn links, detailing request formats, required parameters, example PHP code for generating and expanding URLs, and shows sample JSON and XML responses.
PHPSinabackend development
0 likes · 6 min read

This article explains the value of short URLs, the HTTP redirection principle behind them, and provides detailed design and implementation strategies—including hash‑based and distributed‑ID approaches, base‑62 encoding, database storage, caching, indexing, and security measures—to build a scalable short‑link service.
CachingHTTP redirectdatabase indexing
0 likes · 12 min read

This article explains the value, underlying HTTP redirect mechanism, and detailed design approaches—including hash‑based and distributed‑ID generation, base‑62 encoding, database storage, caching, indexing, sharding, and rate‑limiting—to build a scalable short‑link service.
HTTP redirecthash algorithmperformance optimization
0 likes · 12 min read

This article explains the need for globally unique identifiers in modern applications, outlines the essential characteristics of a distributed ID generation service, examines common implementation techniques, and discusses concrete business scenarios such as order numbers, coupons, short URLs, and tracing with practical code examples.
BackendPHPcoupon code
0 likes · 18 min read

The article explains the need for globally unique IDs in various business scenarios, outlines essential service characteristics such as uniqueness, ordering, high availability, and security, and details common technical implementations including Snowflake, Redis auto‑increment, short‑URL encoding, and custom coupon code schemes.
coupon codeid-generationshort URL
0 likes · 18 min read

This article analyzes the diverse business requirements for unique identifiers—such as order numbers, QR‑code payments, coupons, trace IDs, and short URLs—and compares technical implementations like Redis auto‑increment, Snowflake, and custom base‑62 encoding to help engineers select the most suitable distributed ID generation solution.
backend architecturecoupon codedistributed-id
0 likes · 19 min read

This article details the architecture, compression‑code generation strategies, database schema, high‑concurrency handling, and Java implementation of a short‑URL service capable of supporting hundreds of millions of short links, including code snippets and deployment considerations.
JavaSpringBoothigh concurrency
0 likes · 19 min read


JavaEdgeFeb 10, 2022 · Backend Development
This article examines short‑URL system design, comparing hash‑based, MySQL, and Redis storage strategies, and proposes an optimized solution using auto‑increment IDs with high‑base (62) encoding and lightweight encryption to reduce storage and improve lookup performance.
HashID encodingbase62
0 likes · 8 min read

This article explains the benefits of short URLs and presents a comprehensive, interview‑friendly design for a high‑performance short‑link service, covering redirect mechanics, hash‑based and auto‑increment generation methods, database schema, collision handling, and an OpenResty‑based architecture for massive concurrency.
OpenRestyhashingshort URL
0 likes · 14 min read

This article explains why short URLs are used in spam messages, outlines their benefits, describes the basic generation process, and dives into service design choices such as storage, one‑to‑one mapping, caching, batch issuance, and distributed handling, accompanied by a Java‑Redis implementation example.
BackendJavahigh concurrency
0 likes · 11 min read

This article explains the benefits of short URLs, outlines their basic workflow, and details a backend design that uses an incremental issuer, base conversion, persistent storage, caching, batch ID allocation, and distributed issuers to achieve efficient, high‑concurrency short‑URL generation.
Javahigh concurrencyredis
0 likes · 10 min read

This article explains why short URLs are used in SMS and other platforms, outlines their benefits, describes the basic workflow of mapping long URLs to short ones, and dives into backend design choices such as incremental ID generation, storage strategies, caching, batch allocation, and distributed generation using Redis and Java.
BackendJavahigh concurrency
0 likes · 11 min read

Short URLs are popular in SMS and social media because they save characters, look tidy, enable analytics, and hide parameters; this article explains their benefits, the basic redirect workflow, and provides a detailed backend design—including storage choices, high‑concurrency strategies, distributed ID generation, and a Java‑Redis implementation.
BackendJavadistributed system
0 likes · 11 min read

The article explains why short URLs are popular, outlines their basic workflow, and details a backend service design that uses an incremental ID generator, Redis caching, MySQL storage, batch allocation, and distributed strategies to efficiently create and manage short links.
MySQLhigh concurrencyshort URL
0 likes · 10 min read

This article explains why short URLs are used in spam SMS, outlines their benefits, describes the basic principle of mapping long URLs to short ones, and details service design choices such as storage, one‑to‑one mapping, high‑concurrency handling, distributed ID generation, and provides a Java implementation using Redis.
backend developmentdistributed systemsredis
0 likes · 11 min read

This article explains the principles of short URL generation, compares incremental ID, hash, and random algorithms, analyzes their security and collision characteristics, and presents a complete backend design including database schema, caching strategy, sharding, and Java implementation details.
AlgorithmJavadatabase
0 likes · 16 min read

This article explains the concept of short URLs, compares three generation algorithms (auto‑increment ID, hash‑based, and random), analyzes their trade‑offs, and presents a complete backend design including database schema, caching strategy, redirection flow, and Java code examples for hash and base‑62 conversion.
Javabase62hash algorithm
0 likes · 15 min read

This article explains the benefits of short URLs, outlines the basic workflow of generating and resolving them, and presents a complete Java implementation that uses Redis for fast storage, MySQL for persistence, and various techniques for high concurrency and distributed deployment.
Backendhigh concurrencyredis
0 likes · 8 min read


21CTONov 8, 2015 · Backend Development
This article explores the essential design considerations for building a short URL service, covering data structures, encoding algorithms, key length choices, capacity planning, sharding strategies, concurrency handling, network architecture, security measures, and a real‑world example.
ConcurrencyShardingbackend design
0 likes · 7 min read

Designing a short URL service involves choosing appropriate key‑value storage, simple incremental or base‑36 encoding for keys, estimating data capacity and sharding strategies, handling concurrent reads/writes with thread‑safe structures or Redis, selecting network event loops, and addressing security concerns such as abuse prevention.
BackendShardingsecurity
0 likes · 6 min read
