Skip to the content.

2. Implement as event naming

Date: 2022-08-24

Status

Accepted

Context

We use event-driven architecture is a software architecture paradigm promoting the production, detection, consumption of, and reaction to event.

Decision

We will stick to the following format of naming system events: shortlink.link.event.new

Where:

Example:

// MQ events
const (
	// MQ_EVENT_LINK_NEW - subscribe on request created link
	MQ_EVENT_LINK_NEW = "shortlink.link.event.new"

	// MQ_EVENT_LINK_CREATED - subscribe on created link
	MQ_EVENT_LINK_CREATED = "shortlink.link.event.created"
)

Consequences

We get a single naming convention for events in the system.