Internal Working of Feign Client - JDK Dynamic Proxy

Опубликовано: 19 Февраль 2026
на канале: Java Puzzle
755
14

In this video, we saw a real-life example of a Proxy pattern in one of my favorite libraries.

Basic example of JDK dynamic proxy
How is proxy used in Feign Client?

Here are some questions that I needed answers to.

How is proxy created?
How can it run without an implementation? Feign Client is an interface and there is no concrete class for it in our code.
How can it make HTTP calls just by defining an interface? I know that Feign Client by default uses HttpURLConnection but how?