DevInsight

A developer's field notes

Topic Archive

Backend

APIs, servers, data flow, and operational changes.

2 published posts belong to this topic.

Backend

Can Small Services Survive? Limits of Polling and Criteria for Introducing Queues

When processing tasks through database polling in small services, throughput drops sharply and latency increases. This article analyzes the limits that polling-based processing must endure and presents concrete criteria for when to introduce a queue system. It covers how to recognize system saturation rather than just 'traffic growth', and the operational checkpoints to keep in mind after adoption.

#메시지 큐#폴링#백엔드 아키텍처#Redis
Backend

Don't Trust Webhooks, Verify with Signatures

Webhook receivers must be designed with distrust of external requests. Since requests can be unstable — with retries, processing delays, and even forgery attempts — signature verification, idempotent processing, retry ID tracking, and queuing for delays are all essential for stable ingestion. Particularly, retries arriving without idempotency keys lead to duplicate processing; when delays grow too long, immediately switch to queue locking.

#webhook#signature-verification#idempotency#retry-handling