bit1.uk

Java and DevOps; using Kubernetes, Terraform, and Spring

Latest writing

Resilience4j Circuit Breaker in Spring Boot

Stop an application from repeatedly calling a dependency that is already failing. Instead of sending every request over the network and waiting for another error, the circuit breaker reacts to recent outcomes. When failures cross a configured threshold, it opens and rejects...

Read post

Resilience4j Bulkhead in Spring Boot

Limit how much shared capacity a particular operation or dependency can consume at once. If a slow downstream service starts tying up threads or HTTP connections, a bulkhead caps the number of concurrent calls allowed to reach it, helping protect the rest...

Read post

Anatomy of a Non-Anemic Spring Application

Domain-Driven Design (DDD) helps manage complex business logic in Spring Boot applications by enforcing a clear separation between the domain model (business rules) and the infrastructure layer (data persistence). But what does a non-anemic domain model look like?

Read post

Six Ways to Map One-to-One Relationships in Spring JPA

For a seemingly straightforward JPA annotation, @OneToOne relationships can be mapped in a surprising number of ways. The problem is not choosing a mapping — it’s understanding the trade-offs between them. I want to explore some[1] variants of these mappings using a...

Read post

Component directives in AngularJS 1.3 - Transclusion

Transclusion is the process of extracting a collection of DOM element from one part of the DOM and copying them to another part of the DOM, while maintaining their connection to the original AngularJS scope from where they were taken. ~ Angular...

Read post