Articles tagged java
-
Saga Compensation in Temporal: Refunding an Undelivered Order with a Child Workflow
A saga pattern worked out in code: a parent workflow dispatches a child consignment workflow, blocks until it returns, and runs refund + cancellation activities if the child reports an undelivered outcome.
-
Signal or Timeout: Handling Payment Confirmation in a Temporal Workflow
A focused look at Temporal's Workflow.await(Duration, Supplier) - the cleanest way I know to wait for an external signal with a bounded timeout, and fall back to an activity if it never arrives.
-
Orchestrating a Place-Order Flow Across Five Spring Boot Services with Temporal
A walk-through of a Spring Boot sample project where five services coordinate a place-order flow entirely via Temporal - no HTTP between services, each service owns its own task queue, and the workflow itself is the transport.
-
Abstraction Is Not an Abstract Class
Why the abstraction principle in OOP is not the same as an abstract class, and how we use abstraction at every layer without realizing it.
-
Achieving Sub-Second API Performance with Multi-Layer Caching in Java Enterprise Commerce Platforms
An architectural overview of multi-layer caching in Java enterprise commerce applications, explaining how CDN, Caffeine, and Redis protect the database and achieve sub-second latency.