How to Manage Interfaces Gracefully in Event-Driven Architecture

This could be a large topic and there are many ways of handle interfaces gracefully, and here I’m going to use one simple example to explain this. Please see below code: I have interface defined in package domain: I have interface implementation embeded in package grpc: Package domain: This package defines an interface named StoreRepository. This interface specifies a set of methods that any concrete type (struct) must implement to satisfy the interface....

September 28, 2023 · 4 min · 675 words · David Lee

Event Streaming v.s Event Sourcing

Event streaming and event sourcing are two related but distinct concepts in the world of event-driven architecture. Event streaming is the process of continuously capturing and storing events as they occur in a system. These events can then be processed and analyzed in real-time or stored for later analysis. Event streaming is often used in systems that require real-time processing of large volumes of data, such as financial trading systems or social media platforms....

September 17, 2023 · 4 min · 677 words · David Lee