Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Event-Driven Microservices, CQRS, SAGA, Axon 4, Spring Boot
Rating: 4.7 out of 5(2,433 ratings)
21,015 students

Event-Driven Microservices, CQRS, SAGA, Axon 4, Spring Boot

Learn to build distributed Event-driven Microservices, CQRS, Event Sourcing, SAGA and Transactions.
Last updated 6/2026
English

What you'll learn

  • Create Event-Driven Microservices
  • Basics of Spring Cloud
  • Use Axon Framework
  • Use Eureka Discovery Service
  • Implement CQRS Design Pattern
  • Use Spring Cloud API Gateway
  • Implement SAGA Design Pattern
  • Create Event Based Messages
  • Rollback Transactions

Course content

26 sections172 lectures9h 31m total length
  • Introduction3:51

    Learn to build distributed microservices with CQRS and event sourcing, manage cross-service transactions using Saga and Axon, and deploy RESTful services with Spring Boot, Eureka, and API gateway.

  • Source code1:11
  • Microservice vs Monolithic application7:11

    Decompose a large app into loosely coupled, fine-grained web services, each handling a single capability. Enable independent deployment, scalability, and language-agnostic HTTP communication.

  • Microservices Architecture Overview7:39

    Explore how splitting a monolith into microservices enables database per service, api gateway routing, and Eureka-based service discovery. Learn to scale with multiple instances, centralized configuration, and patterns like CQRS.

  • Event-Driven Microservices5:16

    Learn how event-driven microservices publish commands and events to a message broker, enabling asynchronous, scalable, loosely coupled systems. Handle events and work with queries.

  • Transactions in Microservices4:31

    Learn how acid transaction properties apply to monoliths and why distributed microservices require saga patterns, with choreography and orchestration approaches to maintain data consistency.

  • Choreography-Based Saga5:51

    Explore choreography-based saga patterns where microservices publish and consume events to drive an order flow and apply compensating transactions in reverse order on failure.

  • Orchestration-Based Saga4:28

    Coordinate an orchestration-based saga with a saga orchestrator managing commands from reserving product in stock to processing payment and shipping, and handle compensating events on failure.

  • Frameworks that we can use2:53

    Explore how to build transactional microservices with event-driven frameworks like Eventuate and Axon, leveraging CQRS, sagas, event sourcing, and Spring Boot integration.

  • (CQRS)Command Query Responsibility Segregation7:08

    Explore the cqrs pattern, separating commands and queries within microservices, where commands trigger writes via http post/put/delete/patch and queries read via http get using messaging and events.

  • Event Sourcing7:11

    Explore event sourcing within a CQRS architecture powered by Axon Framework. Persist every change as events in an event store, replaying them to reconstruct state and update the read database.

  • Axon Framework and Axon Server3:00

    Axon Framework for distributed systems, covering event sourcing, command and query architecture, event stores, Axon Server management, and storage options like PostgreSQL, MySQL, or MongoDB.

  • AxonIQ Console4:47

    Axon Console offers a friendly web interface to view metrics from Axon Server, inspect processors, aggregates, and handlers, and visualize message flows; optional but helpful for monitoring microservices.

  • What if I have questions?0:35

Requirements

  • Java

Description

In this video course, you will learn how to build business logic that spans several distributed Spring Boot Microservices

This course is designed for beginners and we will start from the basics of Microservices, Spring Boot, and Spring Cloud.

You will learn how to create your very first Spring Boot Microservice and how to handle HTTP requests. You will then learn how to run multiple instances of your Microservice behind an API Gateway and how to make them discoverable. This will help you scale up your microservice up and down as needed.

This video course will also cover transactions across multiple distributed Microservices and how to roll back changes if an error took place. Transactions is an advanced topic and to be able to build transactional microservices this video course will teach you a few more design patterns. Starting from the very beginning, you will learn how to develop event-based Microservices that are absolutely location transparent.

You will learn how to use a modern and very popular framework for building event-based Microservices called Axon. Axon Framework is based on design principles such as CQRS(Command Query Responsibility Segregation) and DDD(Domain Driven Design). You will learn how to build event-based Microservices using Axon Framework and how to use CQRS and Event Sourcing in your Microservices.

Finally, you will learn about the Saga design pattern and how to group multiple operations into a single transaction. This will help you build business logic that spans multiple distributed Microservices and roll back changes if one operation fails.

All from the very beginning, to make these advanced topics easier.



Who this course is for:

  • Beginner Java developers interested in learning about Microservices