new-event

Generate and wire a new domain event across quizzes module publisher and consumer aggregates.

5|2|Updated Jun 28, 2023
One-click install
npx skills add https://github.com/socialsoftware/microservices-simulator --skill new-event
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-event
Source: https://github.com/socialsoftware/microservices-simulator/tree/main/.claude/skills/new-event
Command: npx skills add https://github.com/socialsoftware/microservices-simulator --skill new-event

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add a new domain event to propagate state changes across aggregates by generating the event class, subscription, handler, and polling wiring across the publisher and consumer services.

Core Features & Use Cases

  • Generate the domain event class in quizzes module events.
  • Create a subscription and polling wiring to deliver events to the consumer aggregate.
  • Wire the publisher and consumer across microservices-simulator ensuring anchor IDs align with subscribedAggregateId.

Quick Start

Provide the EventName, PublisherAggregate, and ConsumerAggregate as arguments to generate and wire a new domain event across publisher and consumer services.

Frequently Asked Questions about new-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I wire a new domain event across microservices?

To wire a new domain event across microservices, you provide the EventName, PublisherAggregate, and ConsumerAggregate to generate the event class, subscription, handler, and polling wiring artifacts for the publisher and consumer services.

How does event subscription work between publisher and consumer aggregates?

Event subscription between publisher and consumer aggregates works by using anchor-based subscriptions where the subscribedAggregateId aligns with the anchor IDs, ensuring domain events are delivered correctly across the microservices-simulator.

What do I need to generate domain event classes and polling wiring?

You need three arguments to generate domain event classes and polling wiring: the EventName, the PublisherAggregate, and the ConsumerAggregate. These inputs produce the wired event class, subscription, and handler artifacts.

Can I use this to propagate state changes across aggregates in a microservices-simulator?

Yes, you can use this to propagate state changes across aggregates in a microservices-simulator. It generates the necessary event class, subscription, handler, and polling wiring to connect publisher and consumer aggregates within the quizzes module.

What is the best way to add an event handler and subscription for a new domain event?

The best way to add an event handler and subscription for a new domain event is to generate them simultaneously with the event class and polling wiring by specifying the EventName, PublisherAggregate, and ConsumerAggregate for the quizzes module.

Why does the subscribedAggregateId need to align with anchor IDs during event wiring?

The subscribedAggregateId must align with anchor IDs during event wiring to ensure the subscription correctly routes the domain event from the publisher aggregate to the consumer aggregate within the microservices-simulator.