All project notes

Engineering

Hexagonal architecture

Keep business rules independent of the interfaces and services that connect them to the outside world.

In an illustrative design, a webhook adapter calls a routing entry point. Routing rules use an availability port implemented by a presence adapter.
Illustrative diagram

Hexagonal architecture gives application logic explicit interfaces called ports. Adapters translate between those interfaces and technologies such as HTTP, a database, or an external CRM.

In an illustrative SalesCandy routing design, a webhook adapter could translate an incoming request into a routing command. The routing rules could ask for salesperson availability through a port. A presence adapter could supply live availability in production, while a test could supply a fixed set of available salespeople. This is an exploratory design for the documented workflow.