Spring Boot Resilience Pack
Four skills that teach your AI coding agent to build and review resilient Spring Boot backends, from the first outbound HTTP call to production-readiness audits.
The pack covers:
- Resilient integrations: timeouts, retries, circuit breaker and concurrency limits for external APIs.
- Idempotency and concurrency: duplicate-safe POST endpoints, optimistic locking, atomic stock updates and single-run jobs.
- Reliable messaging: idempotent consumers, dead-letter queues and a transactional outbox.
- Service resilience review: a checklist audit that reports findings with severity, location, a failure scenario, a fix and a test.
Each skill detects your project's actual framework and library versions before writing code, prefers what the project already uses, and ends with a test checklist run against real infrastructure with Testcontainers. Each skill works on its own; the pack gives you the full workflow at a lower price than buying them separately.
For backend developers who want agents to write code that survives retries, outages and concurrent users.
Works with any agent that signs in to Agensi, such as Claude, ChatGPT, Claude Code, Cursor and Codex CLI.
One payment, lifetime access. 4 skills unlock instantly in your library.
What's included
4 skillsTeach your coding agent to stop duplicate orders, lost updates and overselling, and to prove it with concurrency tests.
Hardens Spring Boot HTTP clients with timeouts, retries, circuit breakers, and fault-injection tests.
Have your coding agent audit a Spring Boot service for what breaks under outages, retries and load, with findings you can act on.
Teach your coding agent to build consumers and publishers that survive redelivery, poison messages and broker outages.
See it in action
Spring Boot idempotency and concurrency
Example session with this skill installed
Users double-click "Book" and sometimes get two bookings, and when bookings come in at the same moment we sell more seats than an event has. Fix both and prove it under concurrency.
- Read your context and instructions
- Compiled the spring boot idempotency
Summary. POST bookings now require an Idempotency-Key. Seats are taken with an atomic conditional update, and event edits use optimistic locking with ETag/If-Match. The full build passed
three times in a row: 18 tests, 0 failures, 0 errors, against PostgreSQL in a container. No dependencies were added.
| Problem | Decision |
|---|---|
| Double submit / client retry | Idempotency-Key filter after authentication, with keys scoped to the user and atomic insert-if-absent. The request fingerprint is a SHA-256 hash. Leases carry owner tokens and are computed from the database clock. |
| Overselling seats | Single conditional UPDATE … WHERE seats >= :qty with a row-count check |
| Concurrent edits | @Version with explicit If-Match comparison: 412 stale, 428 missing, 409 race lost |
| Old idempotency records | A purge job that can be switched off; it is off in tests, which call it directly |
Verified by tests:
- Concurrent requests with the same key: statuses {201, 409}, overlap proven by an in-flight counter, one booking row.
- Replay returns an identical status, body,
LocationandContent-Type, plus the replay header; the business call runs once. - Same key with a different body → 422; another user with the same key → runs independently; anonymous or wrong password → 401, no replay.
- Missing or invalid key → 400; oversized body → 413 with nothing reserved; a failed validation releases the key, so a corrected retry gets 201.
- Live lease → 409 +
Retry-After. An expired lease is taken over only by the same request, and the original attempt cannot overwrite the new owner's record. - Database stopped inside the filter → 503 problem details with
Retry-After. - 10 concurrent bookings against 9 seats → exactly one rejected, ending at 0 seats.
- 8 concurrent updates with one ETag → exactly one winner. A race at flush → exactly 409.
Next steps. Choose your production Retry-After value (it is a required property). Add pessimistic locking only if a booking ever has to touch several rows. Apply the same filter to other POST endpoints that have irreversible effects.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads these skills and uses them on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every skill in this bundle goes through our trust checks.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.