How I work
I start with how the business talks, not with tables or frameworks. Here's the method in five steps, on a made-up example: a clinic where patients book appointments online.
Map the business as events
With the people who run the clinic, I write down what happens, in their words and in order. Orange notes are events. The pink note is an open question, and this one decided how booking works.
- Who: PatientEvent: Appointment bookedOpen question: Two patients, same slot?
- Rule: The day beforeEvent: Reminder sent
- Who: Front deskEvent: Patient checked in
- Who: DoctorEvent: Visit completed
- Rule: After every visitEvent: Invoice issued
- Who: PatientEvent: Invoice paid
Draw the boundaries
The same word means different things to different people. That's where I split the system, so each part stays small and easy to change.
- To the front deska slot in a doctor's day
- To the doctora visit with notes
- To billingsomething to invoice
So the clinic becomes a few small modules, each with its own model
- SchedulingDoctors' days, no double booking
- VisitsWhat happens in the room
- BillingInvoices and fees
- PatientsWho they are, how to reach them
- RemindersMessages before each visit
- NotificationsSMS and email delivery
Then draw the process
Events show what happens. When a process has rules, waits and branches, I draw it in BPMN, a notation the business and developers can both read, so we agree on it before any code exists. This is the clinic's booking. Change it, then run it.
Click an element, or use the arrow keys: Down goes into a gateway's No path, Up comes back. Delete removes the selected element.
Press Run and a token travels through the process. At each gateway, you pick the path.
The same diagram as BPMN 2.0 XML
Follow one booking
Tap Book on the phone and watch the request travel. Ana gets her answer quickly; the slower work happens after, in the background.
- 10:00 (taken)
- 10:30 (selected)
- 10:45
- 11:15
- 11:30 (taken)
- 12:00
- Patient appOn Ana’s phone
- APIChecks who is asking
- Booking rulesFree slot? Working hours?
- DatabaseSaves it all together
- In the backgroundVia RabbitMQ: SMS, reminders
Tap Book appointment on the phone to start.
Releases should be boring
Every change goes through the same steps. If a test fails, nothing ships. If a new version isn't healthy, users stay on the old one.
- CommitSmall changes, often
- TestRules, integration, load
- BuildOne Docker image
- DeployNo downtime
- MonitorAlerts before users notice
Scale when the load is real
I start simple on purpose. When traffic grows, the same design scales up step by step, all the way to Kubernetes. Drag the load.
One container, one database
Most products start here and stay here for a long time. Cheap to run, fast to change, easy to understand.
1 copies of the app. Databases: PostgreSQL.
Want this on your product?
I can model a new product with you, untangle an existing one, or join your team as a senior engineer.