Event-driven Architecture with Minimal Effort

Temporal coupling is the most overlooked pitfall

Photo by Mohammad Rahmani on Unsplash
{
eventName: "purchased",
createAt: "2022/01/01 1:11:11",
expected: ["giveCoupon", "lottery"],
status: 0, // 0: emitted, 1: timeout, 2: processed
done: [],
args: ["user A", 5000]
}

Leave a Comment