All project notes

Engineering

Event-driven architecture

Let systems react to meaningful changes as they happen.

A lead acceptance produces a CandySync webhook event that a subscribed customer system can process.
Illustrative diagram

When a salesperson accepted a lead, CandySync could send an acceptance event to subscribed customer systems. The event described something that had happened in SalesCandy. Each subscriber could decide how to handle it, such as updating its own view of the lead.

SalesCandy also used asynchronous triggers inside its reporting pipeline. In Dodol/sc-rollups at a52c0bd, separate queues triggered statistics rollups, PDF generation, and email delivery.

Source for CandySync behavior — May 2021 CandySync Webhook Integration Guide, pp. 5 and 19–24.