Skip to content

Releases: mandocaesar/mediator

v0.1.0

13 May 15:02

Choose a tag to compare

v0.1.0 - Initial Release

A lightweight, thread-safe mediator library implementing event-driven communication pattern in Go, with focus on Domain-Driven Design principles and clean architecture.

Features

Event-Driven Architecture

  • Thread-safe event publishing and subscription
  • Global singleton mediator pattern
  • Flexible event payload system
  • Context support for cancellation and timeouts

Domain-Driven Design Support

  • Clean separation of concerns
  • Domain model isolation
  • Repository pattern implementation
  • Use case layer orchestration

Product-SKU Integration Example

  • Automatic SKU generation on product creation
  • Event-driven SKU updates
  • Loosely coupled domain entities
  • Complex workflow demonstration

Event Store Implementations

  • Redis Store with TTL and event limits
  • PostgreSQL Store with persistence
  • Timeline-based storage
  • Transaction support