spring-boot-event-driven-patterns

Community

Build loosely-coupled microservices.

AuthorMassimilianoPili
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables the creation of robust, scalable, and maintainable microservices by implementing Event-Driven Architecture (EDA) patterns, reducing direct dependencies between services.

Core Features & Use Cases

  • Domain Event Publishing: Design and publish domain events from aggregate roots.
  • Transactional Event Handling: Ensure event consistency with @TransactionalEventListener.
  • Distributed Messaging: Integrate with Kafka and Spring Cloud Stream for inter-service communication.
  • Transactional Outbox: Guarantee reliable event delivery.
  • Use Case: In an e-commerce system, when a new order is placed, an OrderPlacedEvent is published. Downstream services like Inventory, Payment, and Shipping can subscribe to this event to perform their respective actions independently, ensuring loose coupling and resilience.

Quick Start

Implement Event-Driven Architecture in Spring Boot using ApplicationEvent, @EventListener, and Kafka by adding the specified Maven dependencies and configuring Kafka bootstrap servers.

Dependency Matrix

Required Modules

org.springframework.boot:spring-boot-starter-weborg.springframework.boot:spring-boot-starter-data-jpaorg.springframework.kafka:spring-kafkaorg.springframework.cloud:spring-cloud-streamorg.testcontainers:testcontainers

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: spring-boot-event-driven-patterns
Download link: https://github.com/MassimilianoPili/claude-code-config/archive/main.zip#spring-boot-event-driven-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.