SystemKit

Design invoicing software for 500 small businesses

Size an ordinary B2B product honestly, keep the design as small as the numbers allow, then see which new demand actually changes it.

The brief

Small businesses use your product to create invoices, email them as PDFs, record payments, and see what is overdue. You have 500 customers and a team of 3 engineers, with no dedicated operations staff. Card processing, tax calculation across countries, and a public API are outside this exercise.

  • Each customer has 4 staff users. On a working day half of all users are active, and each causes 100 requests within an 8-hour day. Peak is 3 times that day’s average.
  • Each customer issues 200 invoices a month. Half of all invoices go out in the last 2 working days of the month, 8 hours each.
  • An invoice is about 5 KB of database rows plus a 200 KB PDF, and rendering a PDF takes 2 CPU-seconds. Use decimal units. Keep invoices for 7 years.
  • Targets: 99.9% availability in a 30-day month, an RPO of 5 minutes, and an RTO of 30 minutes. Assume a database restores at 100 MB/s. Nobody is paged overnight, so a night-time failure must recover on its own.
  • An issued invoice is a financial record. Corrections happen through a new document, such as a credit note, and never by editing the old one.

Reading a design isn’t the same as producing one under a clock. Try it timed: the requirement change stays hidden until partway through.

Loading your draft…

State your scope and assumptions. Estimate peak requests per second, month-end invoice and PDF-rendering rates, and 7-year storage for rows and PDFs. Say which number, if any, could actually hurt you.

0 / 4,000 characters

Name the fewest components you can defend and what each stores or does. Trace issuing one invoice from the click to the emailed PDF. Note the data-model decisions that would be hard to undo.

0 / 4,000 characters

Explain how you meet the RPO and RTO, and check them against the 99.9% budget. Say what happens if a worker crashes mid-render, and how you know your backups work.

0 / 4,000 characters

Respond to the large customer below. Size the 2-hour run first, then say what you would change for capacity and for the audit record, and name one cost of your choice.

The requirement changesA large customer signs on. It will issue 30,000 invoices in one run on the last working day of each month, all of them out within 2 hours. Its auditors also require a record of who created or changed each invoice, when, and what changed, kept for 7 years, with evidence that the record was not edited afterward. Size the run, decide what has to change, and say which demand would have been harder to add late.

0 / 4,000 characters

Write an initial response in all four sections to unlock the checklist and two worked approaches.