squat

module
v0.0.0-...-8dfeaa5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2023 License: MIT

README

squat

Domain-Driven Design framework, event sourcing supported, base on EDA and CQRS.

Feature List

    1. Event Sourcing

    Save eventstream when aggregate changed. And also can been restored from eventstreams and snapshot.

      1. Save eventstream to eventstore
      1. Publish eventstream to eventpublisher
      1. Support taking snapshot for aggregate to snapshotstore
    1. EDA

    Publish events and handle them. In event handler, you can also publish another events.

      1. Support user-customized proxy for event handler
      1. Support notify when command-id related eventstream handled
      1. Support parallel handling events by different mailbox's name
      1. Record published eventstream to publishedstore when published to eventbus success
    1. CQRS

    Send command to command bus and returns two results: one is when command handled, the other is when command-id related eventstream handled.

      1. Support user-customized proxy for command handler
      1. Support notify when command handled
      1. Support parallel handling commands by different mailbox's name
      1. Support process manager, for communication with multiple aggregate instances

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL