Tagged articles
5 articles
Page 1 of 1
Open Source Tech Hub
Open Source Tech Hub
Jan 15, 2025 · Backend Development

Customizing Webman Rate Limiter to Return Precise 429 Errors

This guide shows how to configure Webman's rate‑limiter component—both the programmatic and annotation styles—to throw a custom TooManyRequestsHttpException, ensuring a unified JSON response with HTTP 429 status and a clear "maximum 5 messages per day" message for each phone number.

Exception HandlingPHPRate Limiter
0 likes · 6 min read
Customizing Webman Rate Limiter to Return Precise 429 Errors
ITPUB
ITPUB
Dec 25, 2024 · Backend Development

How a Low Guava RateLimiter Triggered RPC Thread‑Pool Exhaustion

A developer investigates why an RPC service suddenly rejected many requests, discovers that a Guava RateLimiter with a limit of only ten calls per minute caused thread‑pool saturation, and explains the misinterpretations, monitoring data, and steps taken to pinpoint the root cause.

BackendRate Limiterthread pool
0 likes · 10 min read
How a Low Guava RateLimiter Triggered RPC Thread‑Pool Exhaustion
Top Architect
Top Architect
Dec 21, 2021 · Backend Development

Design and Technical Solutions for a High‑Concurrency Flash Sale (秒杀) System

This article analyzes the challenges of building a flash‑sale system—such as overselling, massive concurrent requests, URL exposure, and database strain—and presents a comprehensive backend design that includes separate databases, dynamic URLs, Redis clustering, Nginx load balancing, rate‑limiting, asynchronous order processing, and service degradation strategies.

Backend ArchitectureRate Limiterasynchronous processing
0 likes · 14 min read
Design and Technical Solutions for a High‑Concurrency Flash Sale (秒杀) System