liveBook · Manning

OpenFeign

OpenFeign is a declarative HTTP client library that lets applications call remote services through interfaces, generating or providing their implementations.

How 2 Manning books explain it

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

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.