Decoupling Temporal Services with Nexus and the Java SDK
Your Temporal services share a blast radius. A bug in Compliance at 3 AM crashes Payments, too, because they share the same Worker. The obvious fix is separate services with HTTP calls between them...

Source: DEV Community
Your Temporal services share a blast radius. A bug in Compliance at 3 AM crashes Payments, too, because they share the same Worker. The obvious fix is separate services with HTTP calls between them - but then you're managing HTTP clients, routing, error mapping, and callback infrastructure yourself. We published a hands-on tutorial on learn.temporal.io where you take a monolithic banking payment system and split it into two independently deployable services connected through Temporal Nexus. You'll learn: Nexus Endpoints, Services, and Operations from scratch Two handler patterns for different use cases How to swap an Activity call for a durable cross-namespace Nexus call The caller-side change is minimal - the method call stays the same: // BEFORE (monolith - direct activity call): ComplianceResult compliance = complianceActivity.checkCompliance(compReq); // AFTER (Nexus - durable cross-team call): ComplianceResult compliance = complianceService.checkCompliance(compReq); Same method na