spring-rest-client

Configure Kotlin Spring RestClient with Resilience4j circuit breakers, retries, and timeouts.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/kssumin/claude-playground --skill spring-rest-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-rest-client
Source: https://github.com/kssumin/claude-playground/tree/main/.claude/skills/spring-rest-client
Command: npx skills add https://github.com/kssumin/claude-playground --skill spring-rest-client

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Spring REST client patterns for Kotlin with resilience (Circuit Breaker, Retry, Timeout, Fallback) to make external API integrations more reliable and easier to maintain.

Core Features & Use Cases

  • RestClient configuration with resilience for external API calls.
  • Clear module separation: domain for ports, client-external for HTTP clients, common for exceptions, app-api for injection.

Quick Start

Use the spring-rest-client to configure a RestClient for an external API and enable resilience by wiring in circuit breakers, retries, and timeouts.

Frequently Asked Questions about spring-rest-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a Spring RestClient with circuit breaker and retry in Kotlin?

Configure a Spring RestClient with circuit breaker and retry in Kotlin by adding Resilience4j dependencies, defining a RestClient configuration, domain ports, and wiring resilience patterns through application.yml settings.

What is the best way to handle external API timeouts and fallbacks in Spring Boot 3.2?

Handling external API timeouts and fallbacks in Spring Boot 3.2+ is best achieved using a Kotlin-based RestClient pattern with Resilience4j, providing built-in resilience and structured error handling via ExternalApiException.

Does Resilience4j work with Spring RestClient in a Kotlin microservices architecture?

Yes, Resilience4j works with Spring RestClient in Kotlin microservices, offering circuit breakers, retries, timeouts, and fallbacks across client-external, domain, common, and app-api modules for reliable external service integration.

How do I structure a Spring Boot project for external API integration with resilience?

Structure a Spring Boot project for external API integration by separating concerns into domain ports, client-external HTTP clients, common exceptions, and app-api injection layers to ensure maintainability and clear module boundaries.

When do I need a circuit breaker for Spring REST clients?

You need a circuit breaker for Spring REST clients when your Spring Boot 3.2+ microservices call external services and require reliable integration by preventing cascading failures through retries, timeouts, and structured fallbacks.

Why does my external API call fail without a fallback in Spring Boot Kotlin?

External API calls fail without a fallback in Spring Boot Kotlin because they lack structured error handling; implementing ExternalApiException and Resilience4j fallbacks ensures reliable integration when external services are unavailable.