OpenFeign
OpenFeign is a declarative HTTP client library that lets applications call remote services through interfaces, generating or providing their implementations.
Spring Start Here, Second Edition
OpenFeign is a declarative HTTP client library that generates implementations of Java interfaces for calling remote services.
- How it is used
- Simplifies REST calls between backend services through declarative Java interfaces.
- How deep it goes
- Works through client declaration, enabling and injection, while leaving Spring Cloud integrations unexplored.
- Examples
- Uses a payment service with a POST endpoint, request ID header and Payment body to demonstrate a client call.
- What you can do after
- Apply it via Spring Cloud OpenFeign to declare, enable and inject a client for a REST endpoint.
Read how Spring Start Here, Second Edition explains OpenFeign →
Spring Microservices in Action
Feign is a declarative HTTP client library that lets applications call remote services through defined interfaces.
- How it is used
- Uses a declarative client to call a discovered remote service from the licensing service.
- How deep it goes
- Explains client enabling, interface annotations, parameter mapping, and proxy generation, stopping at the interface definition and use.
- Examples
- Maps an organization-service GET endpoint to a Java method that returns an Organization.
- What you can do after
- Apply Feign by enabling clients and defining an annotated interface for a remote service endpoint.
Read how Spring Microservices in Action explains OpenFeign →
Related concepts
- Ribbonuses · Ribbon is a Netflix client-side load-balancing library for selecting among service instances.
- endpointuses · An endpoint is an addressable interface of a service through which clients access a resource or invoke an operation, typically via a network request.
- interfaceuses · An interface is a contract or boundary that specifies the operations, members, or data shape a type or component exposes, without prescribing its complete implementation.
- @EnableFeignClients annotationconfigured by · The @EnableFeignClients annotation enables OpenFeign client support and configures scanning for interfaces annotated as Feign clients.
- RestClientalternative to · RestClient is Spring Framework’s synchronous HTTP client API for sending requests to remote services and receiving their responses.
Questions about OpenFeign
What is OpenFeign?
OpenFeign is a declarative HTTP client library that lets applications call remote services through interfaces, generating or providing their implementations.
Which Manning books explain OpenFeign?
Spring Start Here, Second Edition and Spring Microservices in Action.
What is the difference between OpenFeign and RestClient?
OpenFeign is a declarative HTTP client library that lets applications call remote services through interfaces, generating or providing their implementations. RestClient is Spring Framework’s synchronous HTTP client API for sending requests to remote services and receiving their responses.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

