Tagged “Proxies”
3 articles with this tag.
- AOP & proxiesHow Spring AOP adds cross-cutting behaviour: aspects, join points, pointcuts and advice; the five advice types with examples; pointcut expressions; JDK vs CGLIB proxies; ordering aspects; the self-invocation trap; which Spring features are built on AOP; and when to use AspectJ weaving instead.
- Load balancing and proxiesHow traffic is spread across servers: where load balancers sit, layer 4 versus layer 7, algorithms (round robin, weighted, least connections, least response time, IP hash, consistent hashing), health checks, smart clients versus hardware and software balancers like HAProxy, redundant balancers, and forward versus reverse proxies.
- Reflection & dynamic proxiesHow Java inspects and changes behaviour at runtime: Class objects, fields, methods, constructors and annotations via reflection, MethodHandles, JDK dynamic proxies vs CGLIB and ByteBuddy, how frameworks like Spring and Hibernate use them, performance, module encapsulation and GraalVM native-image constraints.