spring-boot-event-driven-patterns

spring-boot-event-driven-patterns is a skill for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 90 tokens per session (1,840 once invoked), scanned A, original, MIT.

A set of patterns for building event-driven Spring Boot systems, where services communicate by sending and receiving events instead of calling each other directly. It covers local events, Kafka messaging, and the transactional outbox pattern for reliable delivery.

In plain words
What is it for?
Use it to create domain events, Kafka producers and consumers, post-transaction event handlers, and reliable messaging between microservices.
Why use it?
It helps avoid lost messages and tightly connected services when work spans multiple applications or should happen asynchronously.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the developer-kit-java plugin — 52 skills, 11 commands, 9 agents shipped together

Good fit Use it to create domain events, Kafka producers and consumers, post-transaction event handlers, and reliable messaging between microservices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-event-driven-patterns
Clone the repo
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-java, the plugin that ships this one along with the rest of its 52 skills, 11 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spring-boot-event-driven-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns/github.svg)](https://agentmods.dev/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns)
Your own site
<a href="https://agentmods.dev/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns"><img src="https://agentmods.dev/badge/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-boot-event-driven-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns"><img src="https://agentmods.dev/badge/skills/giuseppe-trisciuoglio/developer-kit/spring-boot-event-driven-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,840 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk pass 14 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01840
Opus 5.5 $0.00036 $0.00736
Sonnet 5.5 $0.00018 $0.00368
Haiku 4.5 $0.00009 $0.00184

Measured 2mo ago against content hash 27b743325049, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spring-boot-event-driven-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/developer-kit-java/skills/spring-boot-event-driven-patterns/SKILL.md · 233 lines

How it starts

The opening of the file, as written. The whole thing — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spring Boot Event-Driven Patterns

Overview

Implement Event-Driven Architecture (EDA) patterns in Spring Boot 3.x using domain events, ApplicationEventPublisher, @TransactionalEventListener, and distributed messaging with Kafka and Spring Cloud Stream.

When to Use

  • Implementing event-driven microservices with Kafka messaging
  • Publishing domain events from aggregate roots in DDD architectures
  • Setting up transactional event listeners that fire after database commits
  • Adding async messaging with producers and consumers via Spring Kafka
  • Ensuring reliable event delivery using the transactional outbox pattern
  • Replacing synchronous calls with event-based communication between services

Quick Reference

Concept Description
Domain Events Immutable events extending DomainEvent base class with eventId, occurredAt, correlationId
Event Publishing ApplicationEventPublisher.publishEvent() for local, KafkaTemplate for distributed
Event Listening @TransactionalEventListener(phase = AFTER_COMMIT) for reliable handling
Kafka @KafkaListener(topics = "...") for distributed event consumption
Spring Cloud Stream Functional programming model with Consumer beans
Outbox Pattern Atomic event storage with business data, scheduled publisher

Examples

Monolithic to Event-Driven Refactoring

Before (Anti-Pattern):

@Transactional
public Order processOrder(OrderRequest request) {
    Order order = orderRepository.save(request);
    inventoryService.reserve(order.getItems()); // Blocking
    paymentService.charge(order.getPayment()); // Blocking
    emailService.sendConfirmation(order); // Blocking
    return order;
}

After (Event-Driven):

@Transactional
public Order processOrder(OrderRequest request) {
    Order order = Order.create(request);
    orderRepository.save(order);

    // Publish event after transaction commits
    eventPublisher.publishEvent(new OrderCreatedEvent(order.getId(), order.getItems()));

    return order;
}

@Component
public class OrderEventHandler {
    @TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT)
    public void handleOrderCreated(OrderCreatedEvent event) {
        // Execute asynchronously after the order is saved
        inventoryService.reserve(event.getItems());
        paymentService.charge(event.getPayment());
    }
}

Read the full file on GitHub · 233 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 233 lines · 90 tokens per session scan A 27b743325049

Subscribe to this mod's changes

spring-boot-event-driven-patterns is a skill published in the GitHub repository giuseppe-trisciuoglio/developer-kit (372 stars, last pushed 2mo ago), licensed MIT. It adds 90 tokens to every session and 1,840 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

spring-boot-event-driven-patterns compared with skills from other repositories

spring-boot-event-driven-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spring-boot-event-driven-patternsgiuseppe-trisciuoglio/developer-kitSkill3722mo agoMITA90Claude Code
durable-objectscloudflare/skillsSkill3.5k5d agoApache-2.0A22Claude Code
sandbox-nextcloudflare/skillsSkill3.5k5d agoApache-2.0A39Claude Code
cloudflarecloudflare/skillsSkill3.5k5d agoApache-2.0A103Claude Code
cloudflare-email-servicecloudflare/skillsSkill3.5k5d agoApache-2.0A21Claude Code
k2cloudflare/skillsSkill3.5k5d agoApache-2.0A38Claude Code
news-searchelvisun/newsjackSkill1.7k4d agoMITA69Claude Code