Back to Speakers

Mario Fusco

Mario Fusco
IBM

Mario is a senior principal software engineer at IBM working as Drools project lead. Among his interests there are also high performance systems and generative AI, being an active contributor of widely adopted projects like Quarkus and LangChain4j. He is also a Java Champion, the JUG Milano coordinator, a frequent speaker and the co-author of "Modern Java in Action" published by Manning.

Look closely at any agentic system and you will find that much of what the LLM does is not generating text but making small decisions: which agent should handle this request, is this answer good enough, should the loop stop, does a human need to step in. Today we make those decisions by asking a chat model to write a word and then parsing it back. That is slow and expensive, and it tells us nothing about how sure the model was.

Decision models take a different approach. Instead of generating text, they answer typed questions about an input (yes/no, one choice among several, a position on a scale) and return probabilities derived from the model's output distribution, with many questions answered in a single call.

This talk introduces decision models and shows how they were integrated in LangChain4j. We start with the low-level DecisionModel API and then move to Decision Services, which let you declare decisions as plain Java interfaces returning booleans, enums and records. We also cover the first provider integration, which works with hosted and self-hosted open models.

We then look at what this changes for agentic systems and how this new kind of models can be used in combination with the LangChain4j Planner abstraction to implement more effective agentic patterns: routing, escalation between cheap and capable agents, judging competing answers and supervising a multi-agent loop can all be driven by a decision model instead of an LLM.

More

JDK 27 turns on compact object headers by default and grows the Project Leyden AOT cache. The JEPs promise a smaller heap and faster startup. Real applications tell a messier story.

When Celestino upgraded alf.io, a Spring Boot ticketing system, the memory saving never showed in its 512 MB container. The real win was elsewhere: less GC work and lower tail latency. He also found an AppCDS archive the JVM had been silently ignoring, three ways the AOT cache quietly turns itself off, and a first comparison that credited JDK 27 for gains that came from a different change. An LLM agent helped with the comparison. It did not help with the mistake.

In this workshop, you’ll rebuild that investigation on your laptop with the Spring Boot and Quarkus versions of the same app (quarkusio/spring-quarkus-perf-comparison): build a fair baseline, drive it with steady, production-like traffic, and use JFR and async-profiler to explain every number rather than just report it.

Then we hand the job to an AI agent wired to a JFR MCP server and watch it fail the way humans do: confirmation bias, convincing stories with no evidence, ignored variance, hidden confounders.

You will learn to:

  • Compare JVM configurations without fooling yourself.
  • Benchmark the way production runs: warmed up, under realistic load.
  • Verify that the JVM features you enabled actually do anything.
  • Back every “it’s faster” with evidence you can show a colleague.
  • Use an AI assistant as a fast pair, not an oracle.

More

Searching for speaker images...