Design Your Contact Form Like the Distributed System It is
A website enquiry looks like one click, but it crosses a form, a server, a CRM, and a messaging service, and any of them can fail. Before anything I build touches a real customer, I run ten failure tests on sample data. Below are the tests, then the five rules that make them pass: save through an outbox before you confirm, make every step idempotent, retry with a per-step budget, track state per lead, and stop on reply or STOP.
One click, four systems
When a visitor sends an enquiry form, the business sees one event. Underneath, it is a chain:
- The browser posts the form to a server.
- The server writes the enquiry somewhere.
- Something creates or updates a record in the CRM.
- Something sends a first reply by email or WhatsApp, and schedules follow-ups.
Each hop can time out, fail halfway or run twice. The browser can lose...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE