<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Yocora Articles</title><description>Free, practical articles on Java, Spring, SQL and AI for backend developers.</description><link>https://yocora.com/</link><item><title>AI code editing: show a diff, let the user apply it</title><link>https://yocora.com/articles/ai-code-editing-diff-apply/</link><guid isPermaLink="true">https://yocora.com/articles/ai-code-editing-diff-apply/</guid><description>Let an LLM edit code safely: choose an edit format, validate the proposal, show a diff, apply it on click and reject stale changes. With a tested example.</description><pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate></item><item><title>GDPR data export implementation: stop missing tables</title><link>https://yocora.com/articles/gdpr-data-export-missing-tables/</link><guid isPermaLink="true">https://yocora.com/articles/gdpr-data-export-missing-tables/</guid><description>A GDPR data export goes stale with every new user table. Find the tables in PostgreSQL and add a JUnit test that fails when one has no export decision.</description><pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate></item><item><title>Spring Boot rate limit by IP behind Cloudflare</title><link>https://yocora.com/articles/spring-boot-rate-limiting-behind-cloudflare/</link><guid isPermaLink="true">https://yocora.com/articles/spring-boot-rate-limiting-behind-cloudflare/</guid><description>Rate limit by IP in Spring Boot behind Cloudflare: read CF-Connecting-IP only from trusted proxies, key IPv6 on a /64 and answer 429 with Retry-After.</description><pubDate>Tue, 01 Dec 2026 00:00:00 GMT</pubDate></item><item><title>Track LLM token usage and cost per user in your app</title><link>https://yocora.com/articles/llm-token-usage-cost-tracking/</link><guid isPermaLink="true">https://yocora.com/articles/llm-token-usage-cost-tracking/</guid><description>Track LLM token usage and cost per user: one event row per model call, a dated price table, budgets checked before the call, and three SQL queries.</description><pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Modular monolith vs microservices: start with modules</title><link>https://yocora.com/articles/modular-monolith-vs-microservices/</link><guid isPermaLink="true">https://yocora.com/articles/modular-monolith-vs-microservices/</guid><description>Why a modular monolith is the safer default than microservices, and how to enforce module boundaries in Spring Boot with Spring Modulith and ArchUnit.</description><pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Spring AI structured output: call an LLM from Java</title><link>https://yocora.com/articles/spring-ai-structured-output/</link><guid isPermaLink="true">https://yocora.com/articles/spring-ai-structured-output/</guid><description>Get a typed Java record from an LLM with Spring AI ChatClient and .entity(). The schema it sends, native mode, failure cases and tests on Spring AI 2.1.</description><pubDate>Sun, 29 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java equals and hashCode: what breaks in a HashMap</title><link>https://yocora.com/articles/java-equals-hashcode-hashmap/</link><guid isPermaLink="true">https://yocora.com/articles/java-equals-hashcode-hashmap/</guid><description>Why you must override hashCode when overriding equals in Java, shown with runnable HashMap and HashSet examples and the rules for writing both correctly.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java Optional best practices: 7 common mistakes</title><link>https://yocora.com/articles/java-optional-common-mistakes/</link><guid isPermaLink="true">https://yocora.com/articles/java-optional-common-mistakes/</guid><description>Seven common Java Optional mistakes with the bad code and the fix: get(), isPresent(), orElse vs orElseGet, Optional fields and null returns.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java record vs class: when to use which</title><link>https://yocora.com/articles/java-record-vs-class/</link><guid isPermaLink="true">https://yocora.com/articles/java-record-vs-class/</guid><description>A record is a final, shallowly immutable class for plain data. See what it generates, what it cannot do, and when a regular class is the better choice.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java switch pattern matching: practical examples</title><link>https://yocora.com/articles/java-switch-pattern-matching-examples/</link><guid isPermaLink="true">https://yocora.com/articles/java-switch-pattern-matching-examples/</guid><description>Pattern matching for switch in Java 21 and 25: type patterns, when guards, sealed types, record patterns, null, and the compiler errors you will meet.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java virtual threads: when to use them and when not</title><link>https://yocora.com/articles/java-virtual-threads-when-to-use/</link><guid isPermaLink="true">https://yocora.com/articles/java-virtual-threads-when-to-use/</guid><description>Virtual threads pay off for many tasks that block on I/O and do nothing for CPU-bound work. Pinning, pooling, ThreadLocal and Spring Boot, with measurements.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Java4Shell (CVE-2026-114938): check and fix your Java app</title><link>https://yocora.com/articles/java4shell-cve-2026-114938-fix/</link><guid isPermaLink="true">https://yocora.com/articles/java4shell-cve-2026-114938-fix/</guid><description>How to tell if Java4Shell affects your Java app, which JDK versions fix it, the JVM flag to use meanwhile, and three mistakes that leave you exposed.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>JPA N+1 problem: three ways to fix it in Hibernate</title><link>https://yocora.com/articles/jpa-n-plus-one-problem/</link><guid isPermaLink="true">https://yocora.com/articles/jpa-n-plus-one-problem/</guid><description>What the N+1 query problem is in JPA and Hibernate, why EAGER does not fix it, and how JOIN FETCH, @EntityGraph and batch fetching compare, with SQL counts.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Spring Boot 4 migration: what changes from Boot 3</title><link>https://yocora.com/articles/spring-boot-4-migration-guide/</link><guid isPermaLink="true">https://yocora.com/articles/spring-boot-4-migration-guide/</guid><description>What breaks when you migrate Spring Boot 3 to 4: modular starters, Jackson 3, removed test annotations and renamed properties. Checked on Boot 4.2.0.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Spring Boot validation error response with ProblemDetail</title><link>https://yocora.com/articles/spring-boot-validation-problemdetail/</link><guid isPermaLink="true">https://yocora.com/articles/spring-boot-validation-problemdetail/</guid><description>Validate a request record with @Valid and return one RFC 9457 ProblemDetail format with field errors. Real responses from Spring Boot 4.2 and 3.5.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item><item><title>Spring @Transactional not working: 7 causes and fixes</title><link>https://yocora.com/articles/spring-transactional-not-working/</link><guid isPermaLink="true">https://yocora.com/articles/spring-transactional-not-working/</guid><description>Why Spring @Transactional is ignored or does not roll back: self-invocation, private and final methods, checked exceptions, threads. With runnable examples.</description><pubDate>Sat, 28 Nov 2026 00:00:00 GMT</pubDate></item></channel></rss>