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?