How to prevent concurrent case creation (same user credentials across different machines) in a Java app? Ensure only one case (e.g., MEM-1) is created
00:04 23 Feb 2026

I’m creating sequential member cases (MEM‑1, MEM‑2…) in a Java/Spring Boot service, but when two users log in with the same credentials on different systems, both can trigger case creation at the same time. I need a way to block the second request so only one user/session can create a case at a time.

java spring