
Layered vs Hexagonal vs Vertical Slice Architecture
Compare layered, hexagonal and vertical slice architecture for Spring Boot services: package layout, testing, coupling and which one suits which team.
Everything you need to level up your coding skills.

Compare layered, hexagonal and vertical slice architecture for Spring Boot services: package layout, testing, coupling and which one suits which team.

Prevent XML external entity attacks in Java: disable DOCTYPE and external entities on DocumentBuilder, SAX, StAX, TransformerFactory and XMLReader.

Size a Java thread pool with the cores times wait over compute formula, split CPU and IO pools, measure, and consider virtual threads.

What Jakarta EE 11 changes for application developers: the Java baseline, Jakarta Data, virtual thread support, updated specifications and removals.

Do contract testing with Pact in Java: consumer tests that generate a contract, provider verification, the Pact Broker, can-i-deploy and CI workflow.

Common Java benchmarking mistakes: no warmup, dead code elimination, constant folding, single runs, GC noise, wrong machine and misread averages.

Build resilient calls in plain Java: bounded timeouts, retries with backoff and jitter, a semaphore bulkhead and how the three combine safely.

Validate input in Quarkus with Hibernate Validator: constraints on request records, Valid on resources, method parameters and a custom error response.

Build JSF Facelets templates with ui:composition and ui:insert, include fragments with ui:include and write reusable composite components with cc:interface.

Create and clean up temporary files in JUnit with TempDir, share a directory per class, load files from test resources and avoid fragile paths in tests.

Find why a Java application starts slowly: measure each phase, log class loading and bean creation, catch DNS and network stalls, then fix the biggest item.

Validate Struts 2 form input with a validate method, XML validation files or annotations, show field errors and see how input routes failures.
We send one email when a new post is published. No spam.