Tagged articles

request-lock

3 articles · Page 1 of 1
Code Ape Tech Column
Code Ape Tech Column
Aug 29, 2024 · Backend Development

Implementing Interface Debounce with Redis and Redisson in Java Backend

This article explains how to prevent duplicate submissions in Java backend APIs by applying debounce techniques using shared Redis caches or Redisson distributed locks, detailing the design of a @RequestLock annotation, key generation, aspect implementation, and practical testing results.

debouncedistributed-lockredisson
0 likes · 15 min read
Implementing Interface Debounce with Redis and Redisson in Java Backend
Programmer XiaoFu
Programmer XiaoFu
May 28, 2024 · Backend Development

SpringBoot Techniques for API Debounce to Eliminate Duplicate Submissions

The article explains why API debounce is essential, identifies the types of endpoints that need it, and walks through two SpringBoot solutions—Redis‑based shared cache and Redisson distributed lock—complete with custom annotations, key generation, code samples, test results, and practical limitations.

JavaRedisSpringBoot
0 likes · 14 min read
SpringBoot Techniques for API Debounce to Eliminate Duplicate Submissions
Selected Java Interview Questions
Selected Java Interview Questions
Jan 4, 2024 · Backend Development

Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot

This article explains why duplicate form submissions occur, the risks they pose, and demonstrates a Spring Boot solution that uses a custom @RequestLock annotation together with Redis SETNX to generate a unique key and block rapid repeated requests, complete with project setup, code examples, and usage instructions.

AOPAnnotationJava
0 likes · 12 min read
Preventing Duplicate Form Submissions with a Redis‑Based Request Lock in Spring Boot