Tagged articles
50 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Dec 28, 2025 · Fundamentals

How to Find the Longest Substring Without Repeating Characters in O(n)

This article explains the problem of finding the longest substring without repeating characters, demonstrates a brute‑force O(n³) solution with code, then introduces an optimized sliding‑window approach that runs in linear time O(n), including detailed implementation, complexity analysis, and key insights.

Sliding WindowStringalgorithm
0 likes · 5 min read
How to Find the Longest Substring Without Repeating Characters in O(n)
Java Baker
Java Baker
Nov 27, 2025 · Backend Development

Mastering Rate Limiting: Token Bucket & Sliding Window Algorithms in Java

This article explains the principles and implementation details of common rate‑limiting algorithms—token bucket and sliding‑window counting—including their core concepts, key processes, Java code examples, and how to extend them to distributed scenarios with Redis Lua scripts.

DistributedSliding WindowToken Bucket
0 likes · 19 min read
Mastering Rate Limiting: Token Bucket & Sliding Window Algorithms in Java
Su San Talks Tech
Su San Talks Tech
Nov 9, 2025 · Backend Development

Designing a Scalable Real‑Time Video Ranking System for Billions of Views

This article walks through the complete system‑design process for a Douyin‑style video leaderboard, covering requirement analysis, functional and non‑functional specs, scale estimation, single‑machine baseline, fault‑tolerance, sharding, time‑window handling with a double‑pointer method, and caching strategies to achieve low latency, high throughput, and precise results at massive scale.

High ThroughputSliding WindowSystem Design
0 likes · 26 min read
Designing a Scalable Real‑Time Video Ranking System for Billions of Views
Tech Freedom Circle
Tech Freedom Circle
Oct 25, 2025 · Databases

Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution

This article presents a complete, step‑by‑step analysis of a high‑concurrency Redis counter component that supports up to 100 000 QPS, covering business pain points, architectural design, two core counting strategies, sharding, local batch optimization, code walkthroughs, and performance benchmark results.

CounterSliding WindowSpring Boot
0 likes · 33 min read
Designing a 10 WQPS Redis Counter Component: A Systematic Timer Solution
IT Services Circle
IT Services Circle
Oct 13, 2025 · Fundamentals

Understanding TCP Flow Control vs Congestion Control: Key Differences and Mechanisms

This article explains TCP’s flow control and congestion control mechanisms, detailing sliding window operation, zero‑window probing, SWS, window scaling, and the core congestion algorithms (slow start, congestion avoidance, fast retransmit/recovery), and clearly contrasts their purposes, scopes, and key variables.

Flow ControlNetwork ProtocolsSliding Window
0 likes · 14 min read
Understanding TCP Flow Control vs Congestion Control: Key Differences and Mechanisms
Su San Talks Tech
Su San Talks Tech
Oct 9, 2025 · Backend Development

Designing a Scalable Real‑Time Video Ranking System for Billions of Views

This article walks through the end‑to‑end system design of a TikTok‑style video leaderboard, covering functional and non‑functional requirements, traffic estimation, single‑node prototypes, fault‑tolerant replication, sharding, elastic partitioning, sliding‑window counters, and caching strategies to achieve low‑latency, high‑throughput ranking at massive scale.

Sliding WindowSystem Designcaching
0 likes · 21 min read
Designing a Scalable Real‑Time Video Ranking System for Billions of Views
Data Party THU
Data Party THU
Aug 11, 2025 · Artificial Intelligence

What Sets the Latest LLMs Apart? A Deep Dive into V3, OLMo, Gemma, Mistral, Llama 4 and More

This article systematically compares the architectures of recent large language models—including DeepSeek V3/R1, OLMo 2, Gemma 3, Mistral Small 3.1, Llama 4, Qwen 3, SmolLM 3 and Kimi 2—highlighting innovations such as MLA, MoE, post‑norm, sliding‑window attention, NoPE and optimizer choices, with diagrams and code examples to illustrate their impact on efficiency and performance.

ComparisonLLMMLA
0 likes · 12 min read
What Sets the Latest LLMs Apart? A Deep Dive into V3, OLMo, Gemma, Mistral, Llama 4 and More
Lin is Dream
Lin is Dream
Jul 7, 2025 · Backend Development

Master Sliding‑Window Rate Limiting with Redis Sorted Sets

This article explains how to implement a precise sliding‑window rate‑limiting algorithm using Redis Sorted Sets, detailing the problem scenario, the algorithm steps, Lua script implementation, Java integration, and practical extensions for high‑performance backend services.

BackendJavaLua
0 likes · 8 min read
Master Sliding‑Window Rate Limiting with Redis Sorted Sets
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2025 · Backend Development

Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices

This article explains why per‑minute API call counting is essential for performance bottleneck detection, capacity planning, security alerts and billing, and presents five concrete Java‑based implementations—including a fixed‑window counter, a sliding‑window counter, AOP‑based transparent monitoring, a Redis time‑series solution, and Micrometer‑Prometheus integration—along with a hybrid architecture, performance benchmarks, and practical capacity‑planning advice.

API monitoringPrometheusSliding Window
0 likes · 25 min read
Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices
php Courses
php Courses
Apr 7, 2025 · Backend Development

Implementing Sliding Window Algorithms in PHP for Real-Time Data Processing

This article introduces the sliding window technique, demonstrates efficient PHP implementations for computing averages and handling real-time streams, provides optimization strategies, and outlines practical applications such as financial analysis, network monitoring, and recommendation systems, highlighting performance considerations for backend development.

PHPReal-time ProcessingSliding Window
0 likes · 6 min read
Implementing Sliding Window Algorithms in PHP for Real-Time Data Processing
Tencent Cloud Developer
Tencent Cloud Developer
Jan 15, 2025 · Operations

Mastering Microservice Rate Limiting: Strategies, Algorithms, and TSF Implementation

This article explains why rate limiting is essential for microservice reliability, outlines the key factors to consider before applying limits, compares major algorithms such as fixed‑window, sliding‑window, leaky‑bucket and token‑bucket, describes post‑limit actions, and details how Tencent Service Framework (TSF) implements configurable, tag‑based rate limiting in cloud‑native environments.

MicroservicesSliding WindowToken Bucket
0 likes · 19 min read
Mastering Microservice Rate Limiting: Strategies, Algorithms, and TSF Implementation
Sohu Tech Products
Sohu Tech Products
Sep 11, 2024 · Backend Development

Optimizing an Audit System Processing Chain for Traffic Spikes Using Chain of Responsibility and Sliding‑Window Detection

To prevent audit pipelines from choking during traffic surges, the article proposes augmenting the classic Chain of Responsibility with a sliding‑window anomaly detector, a statistically‑driven dynamic detector, a rule‑based backflow mechanism, and AI‑powered traffic forecasting, enabling adaptive routing and proactive scaling.

BackendJavaSliding Window
0 likes · 16 min read
Optimizing an Audit System Processing Chain for Traffic Spikes Using Chain of Responsibility and Sliding‑Window Detection
AI Cyberspace
AI Cyberspace
Apr 10, 2023 · Fundamentals

Mastering TCP: Header Structure, Handshake, Flow & Congestion Control Explained

This comprehensive guide delves into TCP’s core mechanisms—including header fields, segmentation and reassembly, the three‑way handshake and four‑step termination, sliding‑window flow and congestion control, retransmission strategies, and connection design patterns—providing a solid foundation for network engineers and developers.

Flow ControlSliding WindowTCP
0 likes · 26 min read
Mastering TCP: Header Structure, Handshake, Flow & Congestion Control Explained
MaGe Linux Operations
MaGe Linux Operations
Mar 31, 2023 · Backend Development

Mastering Rate Limiting: Leaky Bucket, Token Bucket, and Sliding Window in Go

This article explains three core rate‑limiting algorithms—Leaky Bucket, Token Bucket, and Sliding Window—detailing their principles, suitable scenarios, and provides complete Go implementations to help developers choose and integrate the right strategy for handling traffic spikes and protecting backend resources.

BackendSliding WindowToken Bucket
0 likes · 15 min read
Mastering Rate Limiting: Leaky Bucket, Token Bucket, and Sliding Window in Go
Architecture Digest
Architecture Digest
Mar 27, 2023 · Backend Development

Rate Limiting: Concepts, Algorithms, and Implementation Strategies

This article explains the fundamental concepts of rate limiting, compares popular algorithms such as token bucket, leaky bucket, and sliding window, and reviews practical implementation methods including Nginx, middleware, Redis, Guava, and Tomcat configurations for both single‑machine and distributed environments.

Sliding WindowToken Bucketleaky bucket
0 likes · 17 min read
Rate Limiting: Concepts, Algorithms, and Implementation Strategies
Architect's Guide
Architect's Guide
Mar 21, 2023 · Backend Development

Fundamentals and Common Practices of Rate Limiting in Distributed Systems

This article explains the basic concepts, dimensions, and typical algorithms of rate limiting, discusses various implementation strategies such as token bucket, leaky bucket, and sliding window, and reviews practical solutions using Nginx, Guava, Redis, Sentinel, and Tomcat for both single‑node and distributed environments.

Sliding WindowToken Bucketleaky bucket
0 likes · 16 min read
Fundamentals and Common Practices of Rate Limiting in Distributed Systems
Programmer DD
Programmer DD
Mar 16, 2023 · Backend Development

Mastering Rate Limiting with Redis: 3 Practical Implementations

This article explains three Redis‑based rate‑limiting techniques—using SETNX, sorted sets, and a token‑bucket with lists—providing code examples, discussing their advantages and drawbacks, and showing how to integrate them into Java Spring applications to protect high‑concurrency services.

BackendJavaSliding Window
0 likes · 7 min read
Mastering Rate Limiting with Redis: 3 Practical Implementations
Architect
Architect
Dec 10, 2022 · Backend Development

Rate Limiting: Concepts, Common Algorithms, and Practical Implementation Strategies

This article explains the fundamentals of rate limiting, describes widely used algorithms such as token bucket, leaky bucket, and sliding window, and details practical implementation methods ranging from single‑machine tools like Guava and Tomcat to distributed solutions using Nginx, Redis, and Sentinel.

Distributed SystemsSliding WindowToken Bucket
0 likes · 17 min read
Rate Limiting: Concepts, Common Algorithms, and Practical Implementation Strategies
Xingsheng Youxuan Technology Community
Xingsheng Youxuan Technology Community
Aug 24, 2022 · Backend Development

Mastering Sliding Window Rate Limiting: Sentinel Implementation Explained

This article explains the sliding window rate‑limiting algorithm, its advantages over fixed windows, and provides a detailed step‑by‑step implementation using Sentinel’s data structures, including window partitioning, bucket management, concurrency handling, and calculation of request counts within a moving time interval.

BackendSliding Windowconcurrency
0 likes · 8 min read
Mastering Sliding Window Rate Limiting: Sentinel Implementation Explained
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Jun 23, 2022 · Backend Development

Mastering Rate Limiting: Choosing the Right Algorithm for High‑Availability Systems

This article explores the importance of rate limiting in distributed micro‑service architectures, explains four core algorithms—fixed window, sliding window, leaky bucket, and token bucket—and details a practical, Redis‑backed multi‑layer throttling solution for a voice‑bot platform, including trade‑offs and implementation tips.

Distributed SystemsMicroservicesSliding Window
0 likes · 15 min read
Mastering Rate Limiting: Choosing the Right Algorithm for High‑Availability Systems
MaGe Linux Operations
MaGe Linux Operations
May 18, 2022 · Backend Development

Rate Limiting in Go: Leaky Bucket, Token Bucket, Sliding Window

This article explores three core rate‑limiting algorithms—Leaky Bucket, Token Bucket, and Sliding Window—detailing their principles, suitable scenarios, and provides complete Go implementations, enabling developers to choose and integrate the appropriate strategy for controlling request traffic without external dependencies.

BackendSliding WindowToken Bucket
0 likes · 15 min read
Rate Limiting in Go: Leaky Bucket, Token Bucket, Sliding Window
Alibaba Cloud Native
Alibaba Cloud Native
Apr 27, 2022 · Cloud Native

How ACK’s Resource Profiling Optimizes Kubernetes CPU & Memory Requests

This article explains how Alibaba Cloud Container Service for Kubernetes (ACK) uses container‑level resource profiling with half‑life sliding windows and quantile algorithms to automatically recommend accurate CPU and memory requests, improving cluster utilization while maintaining application stability.

ACKCloud NativeKubernetes
0 likes · 9 min read
How ACK’s Resource Profiling Optimizes Kubernetes CPU & Memory Requests
政采云技术
政采云技术
Mar 31, 2022 · Backend Development

Sentinel Flow‑Control Framework: Architecture, Sliding‑Window Implementation and Comparison with Hystrix

This article introduces Alibaba's open‑source Sentinel framework, explains its ecosystem and key features, details the design of its high‑performance sliding‑window data structure (LeapArray) with Java code examples, and compares its flow‑control mechanism to Hystrix’s implementation.

Flow ControlHystrixSliding Window
0 likes · 18 min read
Sentinel Flow‑Control Framework: Architecture, Sliding‑Window Implementation and Comparison with Hystrix
Sanyou's Java Diary
Sanyou's Java Diary
Feb 11, 2022 · Fundamentals

Mastering TCP: Sliding Window, Flow & Congestion Control Explained

This article continues the previous discussion on TCP handshakes and termination, then thoroughly explains nine essential TCP mechanisms—including sliding window, flow control, congestion control, delayed and piggyback ACKs, sticky packet handling, and keep‑alive—illustrated with diagrams and practical examples.

Flow ControlNetwork ProtocolsReliability
0 likes · 15 min read
Mastering TCP: Sliding Window, Flow & Congestion Control Explained
Top Architect
Top Architect
Jan 9, 2022 · Backend Development

Designing Rate Limiting and Circuit Breaking for Microservices and API Gateways

The article explains the concepts, problem scenarios, resource granularity, rule definition, sliding‑window calculation, and implementation flow of rate limiting and circuit breaking in microservice architectures and API gateways, providing practical guidance for building robust backend services.

BackendCircuit BreakingSliding Window
0 likes · 13 min read
Designing Rate Limiting and Circuit Breaking for Microservices and API Gateways
Architecture Digest
Architecture Digest
Dec 25, 2021 · Backend Development

Design and Implementation of Rate Limiting and Circuit Breaking in Microservice Architecture

This article explains the motivations, concepts, resource granularity, rule definitions, and two‑stage sliding‑window computation needed to design and implement effective rate limiting and circuit breaking mechanisms for microservice APIs and API gateways, ensuring isolated failures do not cascade across services.

Circuit BreakingSliding Windowapi-gateway
0 likes · 13 min read
Design and Implementation of Rate Limiting and Circuit Breaking in Microservice Architecture
Xiao Lou's Tech Notes
Xiao Lou's Tech Notes
Dec 20, 2021 · Backend Development

Mastering Sliding Window Rate Limiting in Sentinel-Go: From Theory to Code

This article explores why engineering skills outrank pure algorithm knowledge, explains the challenges of implementing flow‑control algorithms such as token bucket and sliding‑window rate limiting, and walks through Sentinel‑Go's concrete LeapArray implementation with detailed Go code examples.

BackendSentinel GoSliding Window
0 likes · 11 min read
Mastering Sliding Window Rate Limiting in Sentinel-Go: From Theory to Code
JavaEdge
JavaEdge
Nov 19, 2021 · Fundamentals

Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution

This article explains how to compute the maximum of each k‑sized sliding window over an integer array using both a priority‑queue (heap) approach and an optimized monotonic deque technique, complete with detailed walkthroughs, visual illustrations, and full Python code.

HeapSliding Windowalgorithm
0 likes · 9 min read
Master Sliding Window Maximum with Heap and Deque – Step-by-Step Solution
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 13, 2021 · Fundamentals

Sliding Window Technique: Concepts, Framework, and LeetCode Examples

This article introduces the sliding window algorithmic technique, explains its relation to TCP flow control, demonstrates its implementation with Java code for maximum subarray sum, longest substring without repeats, and minimum window substring problems, and provides a reusable framework for solving similar LeetCode challenges.

LeetCodeSliding Windowalgorithm
0 likes · 10 min read
Sliding Window Technique: Concepts, Framework, and LeetCode Examples
Programmer DD
Programmer DD
Nov 10, 2021 · Backend Development

Master Redis Rate Limiting: SetNX, ZSet Sliding Window, and Token Bucket

This article explains three practical Redis-based rate‑limiting techniques—using SETNX for simple counters, ZSET for a sliding‑window algorithm, and a token‑bucket implementation with List—complete with Java code examples and discussion of their advantages and drawbacks.

Backend DevelopmentJavaSliding Window
0 likes · 7 min read
Master Redis Rate Limiting: SetNX, ZSet Sliding Window, and Token Bucket
政采云技术
政采云技术
Oct 12, 2021 · Backend Development

Sliding Window Algorithm in Sentinel: Theory, Implementation, and Code Walkthrough

This article explains the sliding‑window rate‑limiting technique used by Sentinel, presents a classic sliding‑window coding interview problem with a full Java solution, and then dives into Sentinel's internal classes such as WindowWrap, LeapArray, and MetricBucket to show how windows are created, updated, and slid over time.

BackendJavaSliding Window
0 likes · 16 min read
Sliding Window Algorithm in Sentinel: Theory, Implementation, and Code Walkthrough
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 15, 2021 · Backend Development

Understanding Rate Limiting: Counter, Sliding Window, Leaky Bucket, and Token Bucket Algorithms

The article introduces the concept of rate limiting, explains why it is needed both offline (e.g., crowded theme parks) and online (e.g., flash sales), and details four common algorithms—counter, sliding window, leaky bucket, and token bucket—along with their implementation considerations and trade‑offs.

Sliding WindowToken Bucketcounter algorithm
0 likes · 9 min read
Understanding Rate Limiting: Counter, Sliding Window, Leaky Bucket, and Token Bucket Algorithms
Programmer DD
Programmer DD
Dec 13, 2020 · Backend Development

Master Sliding Window Rate Limiting in Java with Simple Code

This article introduces a straightforward Java implementation of a sliding‑window rate‑limiting algorithm for single‑machine use, explains its core logic, demonstrates its behavior with sample output, and visualizes the step‑by‑step process of how timestamps are managed within the window.

JavaSliding Windowalgorithm
0 likes · 8 min read
Master Sliding Window Rate Limiting in Java with Simple Code
vivo Internet Technology
vivo Internet Technology
Dec 2, 2020 · Cloud Native

In‑Depth Analysis of Sentinel's Rate‑Limiting Mechanism

Sentinel implements rate‑limiting through a chain‑of‑responsibility where annotated methods trigger SphU.entry, creating a Context, Node, and Entry; slots such as NodeSelectorSlot, ClusterBuilderSlot, StatisticSlot, and FlowSlot update sliding‑window metrics via LeapArray and enforce QPS thresholds, throwing BlockException on violations.

Circuit BreakingJavaSliding Window
0 likes · 18 min read
In‑Depth Analysis of Sentinel's Rate‑Limiting Mechanism
Xianyu Technology
Xianyu Technology
Aug 20, 2020 · Artificial Intelligence

Scatter Algorithm for Recommendation Systems: Methods and Evaluation

The article presents three scatter algorithms—column scatter, weight distribution, and sliding‑window—that reorder recommendation lists to disperse similar items, describing their mechanics, computational complexities, experimental trade‑offs, and a hybrid case study for efficient, multi‑dimensional list diversification.

Sliding Windowrankingrecommendation
0 likes · 10 min read
Scatter Algorithm for Recommendation Systems: Methods and Evaluation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Feb 21, 2020 · Fundamentals

Longest Substring Without Repeating Characters – Sliding Window Analysis and Optimizations

This article explains the sliding‑window technique for solving the classic “Longest Substring Without Repeating Characters” problem, presents step‑by‑step analysis, demonstrates three Java implementations—from a basic set‑based method to hashmap and array optimizations—and discusses their time‑complexity improvements.

JavaSliding WindowString
0 likes · 8 min read
Longest Substring Without Repeating Characters – Sliding Window Analysis and Optimizations
Big Data Technology & Architecture
Big Data Technology & Architecture
Dec 17, 2019 · Big Data

Understanding Flink Sliding Windows and Performance Optimizations

This article explains Flink's sliding window mechanism, shows how the WindowAssigner and WindowOperator work with code examples, analyzes the performance impact of fine‑grained sliding windows, and proposes a practical workaround using tumbling windows combined with external storage such as Redis for efficient PV/UV aggregation.

Big DataFlinkPerformance Optimization
0 likes · 8 min read
Understanding Flink Sliding Windows and Performance Optimizations
Qunar Tech Salon
Qunar Tech Salon
Aug 22, 2017 · Artificial Intelligence

Sliding Window and SVM Based Web Crawler Detection System Design

This article describes a flexible web crawler identification approach that combines sliding‑window data collection with Support Vector Machine classification, detailing the underlying concepts, feature extraction, system architecture, client‑server interaction, and deployment steps for practical use.

Sliding WindowSystem Architectureclient-server
0 likes · 7 min read
Sliding Window and SVM Based Web Crawler Detection System Design
Tencent Advertising Technology
Tencent Advertising Technology
Jun 26, 2017 · Artificial Intelligence

Practical Feature Engineering and Optimization Tips for a Data Mining Competition

The author shares hands‑on experiences from a data‑mining contest, covering categorical feature handling, sliding‑window statistics, feature combination strategies, pandas performance tricks, file organization, and using nohup for remote Linux execution to improve model training efficiency.

Sliding Windowcompetitionpandas optimization
0 likes · 6 min read
Practical Feature Engineering and Optimization Tips for a Data Mining Competition
21CTO
21CTO
Feb 4, 2016 · Backend Development

How to Detect Hotspots with a Rate‑Limiting System Using Concurrent LRU Maps

This article explains how a rate‑limiting system can identify hot‑spot resources by using time‑window statistics, a concurrent LRU hash map, and cluster‑wide aggregation to efficiently track and evict low‑frequency keys while maintaining high throughput.

Backend PerformanceDistributed SystemsSliding Window
0 likes · 9 min read
How to Detect Hotspots with a Rate‑Limiting System Using Concurrent LRU Maps
Baidu Tech Salon
Baidu Tech Salon
Jul 8, 2014 · Information Security

Understanding TCP RST Attacks: From Handshakes to Exploiting Sequence Numbers

This article explains TCP fundamentals—including three‑way handshakes, sliding windows, and four‑way termination—then details how the RST flag works and how attackers can forge packets using source ports and sequence numbers to execute powerful RST denial‑of‑service attacks.

HandshakeRST attackSliding Window
0 likes · 9 min read
Understanding TCP RST Attacks: From Handshakes to Exploiting Sequence Numbers