trebol-ecommerce / trebol-backend-monolith

Monolithic eCommerce backend web application that exposes a RESTful API.
MIT License
16 stars 21 forks source link

Event System #163

Closed bglamadrid closed 2 years ago

bglamadrid commented 2 years ago

Summary

Introduce a mechanism to create documented events, each fired under certain conditions such as

And so on.

These examples should not be considered in particular; the feature I'm conceiving is an abstraction, an API to both fire and listen to any defined event and let other parts of the application (and perhaps outside of the application itself) be aware of these events.

Bare-bones idea

Expected outcome

Have, at every developer's disposal, a simple yet powerful mean to extend the features of this project.

Considered alternatives

I haven't yet searched for alternatives, as I often try to figure out how I would do things myself (no I don't endorse doing this, I personally just can't help it).