Skip to content
Menu
Book a call
From sticky notes to Kubernetes

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.

1 Discover

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.

  1. Who: PatientEvent: Appointment bookedOpen question: Two patients, same slot?
  2. Rule: The day beforeEvent: Reminder sent
  3. Who: Front deskEvent: Patient checked in
  4. Who: DoctorEvent: Visit completed
  5. Rule: After every visitEvent: Invoice issued
  6. Who: PatientEvent: Invoice paid
2 Model

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.

"Appointment"
  • 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
2 Model

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.

Add after “Check the slot”
Booking requestedCheck the slotSlot free?Book the appointmentDay before the visitSend a reminderPatient came?See the doctorIssue the invoiceVisit doneRecord a no-showNo-showOffer nearby timesNot booked

Click an element, or use the arrow keys: Down goes into a gateway's No path, Up comes back. Delete removes the selected element.

SelectedService taskThe system does it on its own.

Ready

Press Run and a token travels through the process. At each gateway, you pick the path.

The same diagram as BPMN 2.0 XML
3 Build

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.

Example clinicBook a visit
Dr. PetrovaFamily medicine
DayThu 26 Nov
  • 10:00 (taken)
  • 10:30 (selected)
  • 10:45
  • 11:15
  • 11:30 (taken)
  • 12:00
  1. Patient appOn Ana’s phone
  2. APIChecks who is asking
  3. Booking rulesFree slot? Working hours?
  4. DatabaseSaves it all together
  5. In the backgroundVia RabbitMQ: SMS, reminders
Ready

Tap Book appointment on the phone to start.

4 Ship

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.

  1. CommitSmall changes, often
  2. TestRules, integration, load
  3. BuildOne Docker image
  4. DeployNo downtime
  5. MonitorAlerts before users notice
5 Scale

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.

Launch

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.