#proxy
Posts
-
Digging into nginx's Source 11: Upstream and Proxy — One Request Through the Reverse Proxy
We follow, in the source, how one proxy_pass line installs a content handler on a location, how the proxy module fills the callbacks of ngx_http_upstream_t, and how upstream then takes care of the non-blocking connect, sending the request, reading the response header and streaming the body. We check the request the backend actually receives (HTTP/1.1 by default in this version, and no Connection header), where 502 and 504 are decided, proxy_next_upstream, and proxy_buffering on/off with its temporary file — using debug logs, gdb and a tiny backend.
-
Digging into Spring's Source 10: How an AOP Proxy Gets Built — the JDK Way and the CGLIB Way
How a single ProxyFactory.getProxy() call decides between a JDK dynamic proxy and a CGLIB proxy, how each one is built, and how a call on the proxy travels through the interceptor chain to the target object — all checked against the real source. Also why calling your own method from inside the class skips the advice, and the trap with final methods, shown with runnable examples.