Skip to content

Tag: java

Build an AI Agent with Spring AI 2.0: A Working Example with Guardrails
AI Viktar Patotski Viktar Patotski · 12 min read

Build an AI Agent with Spring AI 2.0: A Working Example with Guardrails

A support-triage AI agent in Java with Spring AI 2.0.1: one structured workflow step, a bounded tool loop, tenant data the model never sees, and refunds that wait for a human. Plus the guardrails Spring AI now ships and the ones you still write yourself.

Virtual Threads vs Platform Threads: A Spring Boot Benchmark on AWS
Performance Viktar Patotski Viktar Patotski · 13 min read

Virtual Threads vs Platform Threads: A Spring Boot Benchmark on AWS

Do Java virtual threads make a Spring Boot app faster? I load-tested the same app both ways on real AWS hardware. The honest answer: below saturation they do nothing, on CPU-bound work they do nothing, and where they win on blocking I/O, a properly tuned platform pool matches the throughput. The real case for virtual threads is not raw speed, it is having no pool to tune and a cheaper thread.