Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Temporal with Spring Boot in Practice
Rating: 4.5 out of 5(9 ratings)
120 students

Temporal with Spring Boot in Practice

Build fault-tolerant Spring Boot workflows with Temporal: sagas, compensation, human approvals, testing, and production
Created bySamir Chekkal
Last updated 9/2026
English
English [Auto],

What you'll learn

  • Build durable, fault-tolerant business workflows in Spring Boot with Temporal that survive crashes, restarts, and downstream outages
  • Implement multi-step Saga orchestration with automatic reverse-order compensation across payment, inventory, and shipping steps
  • Write Workflows and Activities correctly, including the determinism rules that make deterministic replay safe
  • Implement multi-step Saga orchestration with automatic reverse-order compensation across payment, inventory, and shipping steps
  • Write Workflows and Activities correctly, including the determinism rules that make deterministic replay safe
  • Configure the Temporal SDK in Spring Boot using auto-configuration, application.yml, workers, and task queues
  • Pause workflows for human-in-the-loop approval and drive them with Signals, Queries, and Updates
  • Replace fragile @Scheduled cron jobs with Temporal cron workflows that guarantee retries and full execution visibility
  • Test workflows fast and deterministically with JUnit 5 and TestWorkflowEnvironment time-skipping
  • Tune Retry Policies and the four timeout types to control exactly how your workflows fail, retry, and recover
  • Guarantee idempotency and deduplication using business keys, WorkflowIdReusePolicy, and activity idempotency keys
  • Version and safely evolve running workflows with Workflow.getVersion() and Worker Build ID versioning
  • Deploy Temporal locally, with Docker Compose, and on Kubernetes, secured with mTLS and namespace isolatio
  • Instrument production workflows with replay-aware logging, Micrometer metrics, and OpenTelemetry tracing

Course content

8 sections • 30 lectures • 3h 37m total length
  • Introduction3:39

    Tour the e-commerce app you will build: saga orchestration, compensation, human-in-the-loop approvals, cron workflows, and event-driven coordination.

Requirements

  • Working knowledge of Java — you should be comfortable with classes, interfaces, generics, and lambdas
  • Hands-on Spring Boot experience: dependency injection, @Service and @RestController, and application.yml configuration
  • No prior Temporal, Cadence, or workflow-engine experience needed — everything is taught from first principles
  • JDK 17 or later, plus Maven or Gradle installed on your machine
  • Docker Desktop (or Docker Engine) to run the Temporal server and Web UI locally
  • An IDE such as IntelliJ IDEA, VS Code, or Eclipse
  • Basic familiarity with REST APIs and relational databases is helpful but not required
  • Kubernetes and mTLS sections are optional — you can complete the course entirely on your laptop

Description

“This course contains the use of artificial intelligence.”

Your order workflow runs perfectly — until the payment service times out at step three.

The customer is charged. Inventory is reserved. Nothing ships. And someone on your team is writing SQL at 2 a.m. to work out which orders are stuck and which ones were double-charged.

Every backend developer has lived this. The usual answers — a retry annotation here, a cron job there, a status column that grows a new state every sprint — do not fix the problem. They hide it until it fails in a more expensive way.

Temporal fixes it properly. It gives your Spring Boot application durable execution: your workflow code keeps its state across crashes, restarts, deploys, and outages that last for days. A workflow that is halfway through when the JVM dies picks up exactly where it left off, on a different machine, with every variable intact.

This course teaches you Temporal the way you will actually use it — inside a real Spring Boot codebase, building a real e-commerce order fulfillment system from an empty project to production-ready.

What you will build

You will build a complete order fulfillment platform, one pattern at a time:

  • A five-step saga — validate, authorize payment, reserve inventory, schedule shipment, confirm — with automatic reverse-order compensation when any step fails

  • Payment processing with authorization/capture separation, idempotent retries, and state-dependent rollback

  • Human-in-the-loop approval for high-value orders, using signals, escalation timeouts, and automatic rejection

  • Cron workflows that replace fragile @Scheduled jobs and survive restarts

  • Event-driven coordination with Signals, Queries, and Updates

  • Cross-service orchestration between separate Spring Boot services using task queue routing

What you will learn

We start with why durable execution exists and how deterministic replay works, then map Temporal's four components onto the Spring Boot concepts you already know. From there it is hands-on: workflows and activities, the determinism rules, worker and task queue configuration, and Spring Boot auto-configuration with application.yml.

Then we go to production. You will write fast deterministic tests with JUnit 5 and TestWorkflowEnvironment time-skipping, add replay-aware logging, Micrometer metrics, and OpenTelemetry tracing, version running workflows safely with Workflow.getVersion() and Worker Build IDs, and secure everything with mTLS and namespace isolation. We cover retry policies and all four timeout types in depth, plus a three-layer idempotency strategy built on business keys.

Deep dives and hands-on practice

The advanced sections cover the Strangler Fig migration pattern for moving legacy scheduled jobs and state machines to Temporal incrementally, connecting to Temporal Cloud, and how durable execution underpins reliable AI agent workflows.

The course closes with three hands-on katas. You debug a broken workflow where the customer is charged but the order never ships, build a full compensation pipeline with a queryable state tracker, and implement signal-based manager approval with escalation. Each kata is a problem first and a solution second — you write the code, then compare.

Who this is for

This is a practitioner's course for developers who are already productive in Spring Boot. No prior Temporal, Cadence, or workflow-engine experience is needed. Everything runs on your laptop with Docker; Kubernetes and mTLS are covered but optional.


By the end, you will not just know what Temporal is. You will have built the thing that stops the 2 a.m. SQL scripts.

Who this course is for:

  • Mid-level and senior Java developers who build multi-step business processes in Spring Boot and are tired of them breaking halfway through
  • Backend engineers maintaining order, payment, or booking flows held together by retries, cron jobs, and manual database fixes
  • Microservices developers who need reliable Saga orchestration and compensation across service boundaries
  • Software architects evaluating Temporal against message queues, BPMN engines, and hand-rolled state machines
  • Spring Boot developers replacing fragile @Scheduled jobs with workflows that survive restarts and deploys
  • Teams moving a legacy orchestration layer to durable execution and wanting a proven migration path
  • Engineers preparing to run Temporal in production: testing, observability, versioning, and mTLS security
  • Not for absolute Java beginners — you should already be productive in Spring Boot before taking this course