Skip to main content

AI

Spring AI with Docker Model Runner vs Ollama: Local LLMs Benchmarked on the Same Laptop

Point one Spring AI 2.0.2 OpenAiChatModel at Docker Model Runner and at Ollama by changing only base-url and the model name. Same GGUF model, same prompts: decode speed, time to first token, container memory and tool-call success, with transcripts. Measured on a CPU-only shared sandbox with the real docker/model-runner image; GPU and Docker Desktop paths were not measured and the post says so.

Spring AI + Spring Batch: Classifying 100,000 Support Tickets with an LLM (Throttling, Retries, Cost)

A Spring Batch 6 chunk step calls a Spring AI ChatClient for 100,000 generated support tickets. Resilience4j rate limiting and retry, skip-and-record for malformed JSON, a restart after kill -9 in a second JVM that ends byte-identical, and a per-chunk cost ledger, all run against a deterministic simulated model with every number taken from a committed transcript.

20 AI Prompts for Java Concurrency and CompletableFuture

20 copy-paste AI prompts for Java concurrency and CompletableFuture — from basics to advanced production patterns and debugging. Covers thread pools, ExecutorService, CompletableFuture chaining, fan-out/fan-in, timeout handling, virtual threads, deadlock diagnosis, thread dump analysis, and full concurrency audits.

Java 25 LTS: Every JEP That Matters (with AI Prompts for Each Migration)

A JEP-by-JEP deep dive into Java 25 LTS — the features that will actually change how you write and profile Java. Each section includes a before/after code example, an explanation of what the JVM does differently, the pitfall to avoid, and a copy-paste AI prompt to retrofit your existing codebase. Covers JEP 495, 494, 485, 492, 488, 491, 454, and JFR method profiling.