Higher-Kinded-J 0.4.6 is out 🎉
Optic-driven request batching
The N+1 query — collapsed at the optic seam.
Swap the strategy in a traversal's modifyF and N backend loads become one batched call. The optic graph stays untouched.
▸ SafeFetch — failures land on the Either value channel, never thrown
▸ SourceRouter — one call per backend for mixed keysets
▸ Plans.preflight + Guards — audit & refuse runaway batches before they leave the JVM
#Java25 · #Java
#FunctionalProgramming #Optics
https://higher-kinded-j.github.io/latest/optics/optic_batching.html

Optic-Driven Batching - Higher-Kinded-J: Composable Effects and Advanced Optics for Java
The most comprehensive functional programming library for Java. Unify error handling, optional values, and immutable data navigation with the Effect Path API and Focus DSL. Features advanced optics with code generation for Java records, filtered traversals, indexed optics, and seamless Spring Boot integration.







