Skip to content

Build a Coaching Platform

Davor Minchorov•Advanced•17 to 25 weekends•October 29, 2026

A coaching marketplace sells the same coach hour to two clients, loses access when a payment notice arrives late, and drops sessions when its video vendor goes down. You will build the replacement, where a coach's hour is sold once and a client's access follows what she has paid for, and prove it through a simulated weekday with a video outage, late payment notices and a clock change.

The brief

The client

I run operations at a coaching marketplace with 40 coaches and about 1,200 paying clients across six time zones. Everything runs in one application, and when two clients ask for the same slot at the same moment, nothing stops both from getting it. When a popular coach opened her Thursday slots, two clients took the same 17:00 slot within the same second and both got a confirmation email. The coach found out when the second client showed up in the call.

In the weeks after the US changed its clocks and Europe had not, eleven clients joined a recurring session an hour early or an hour late. Our video vendor was unreachable for under two hours one afternoon, every call in that window failed, and nobody could move them. A client whose card renewal had failed kept booking for nine days because nothing connected billing to the booking page.

I need a system where a slot cannot be sold twice, where what a client may do depends on what she has paid for, and where one vendor going down does not cancel a session.

The problem

The current application lets two clients book the same coach hour. A recurring "Tuesday 09:00" session moves by an hour when a region changes its clocks. The video meeting is created while the client waits for her booking, so the vendor's rate limit or an outage fails the booking.

The payment provider reports subscription changes as notices, and the application believes them in the order they arrive, so a late failure notice can lock out a client who has already paid. Coach notes sit next to shared homework, and a template bug once showed a private note to a client. Payouts are computed by hand in a spreadsheet at month end, and a refund is applied to whichever payout is open. Every one of these has cost us a client or a coach.

The client's name and figures are invented for this brief; the rules and the failures are ones that real businesses of this kind work with.

The spec

Requirements

  • Let a coach publish weekly availability in her own time zone, with buffers, a minimum notice, her own cancellation terms and holidays.
  • Let a client see open slots in her own time zone and book one, with at most one client able to hold or own any coach's time at once.
  • Let a client subscribe to a plan that grants session credits each month, cancel or change it, and let her payment state decide whether she can book.
  • Let a client reschedule or cancel under the coach's terms, with a late change forfeiting the credit and one emergency pass a month.
  • Give every confirmed booking a video meeting without the booking depending on the video provider, record who joined and when, and record a no-show when a participant does not join within the grace window.
  • Remind the coach and the client of a session 24 hours before it, in each person's own time zone, once.
  • Let a coach and a client exchange messages between sessions.
  • Let a coach keep private notes and share homework and goals, and keep private notes away from everyone but the coach who wrote them.
  • Pay each coach for the credits clients spend on her sessions, after commission, take back part of a payout when a refund is owed, and assemble evidence for card disputes.
  • Export or erase a person's data on request.

Deliverables

  • Your repository starts the whole product with one command, plus simulated clients, coaches, an operator, a payment provider and a video provider, and a clock you control so a day can run faster than real time.
  • A README that takes a reviewer from a fresh clone to a booked, paid-for and completed session with the coach's payout scheduled in 15 minutes, and lists the command that runs each test the brief asks for.
  • For each stand-in provider, a short list of the failures it can be made to cause and how to cause each one.
  • Client-facing documentation for booking, subscribing, and requesting a data export or an erasure.
  • A test suite covering every Checkpoint, plus the results of the simulated weekday from the final Phase committed to your repository.
  • An operations note that says how an operator sees what happened to one booking, retries failed work once it is fixed, and what to check when a capability has stopped.

Out of scope

  • Coach discovery, search and reviews. They add no booking, billing or privacy rule the brief does not already cover, and a review would be a public record that survives an erasure request.
  • Sponsor engagements, where an employer pays for a client's sessions, and sponsor reports. They add a third party to the confidentiality rules, and the brief stays with two parties.
  • A real payment provider or a real video provider. You build a stand-in for each, so your tests control when they fail.
  • A web or mobile app. Whatever interface you give clients and coaches, the simulator drives it, and the brief judges behaviour and not screens.
  • Tax calculation. The client supplies one fixed VAT rate of 21%; deciding how live video coaching is taxed is a tax adviser's job.
  • Syncing with a coach's outside calendar. A busy event that arrives after a booking took the slot needs rules of its own.
  • Group sessions and recurring bookings. One coach, one client, one session at a time.
  • Suspending a coach whose payout account fails verification. Coach pay stops at the statement and the scheduled payout.
  • Handing out the text of private notes. As the client's own policy, the text of a coach's private notes about a client is given out by hand through the client's privacy contact on request, so the product's export carries only the count of those notes.
  • Purging old records. Dutch rules oblige the client to keep its business records for 7 years (Belastingdienst), so the platform keeps money and evidence records identified by ID and builds no purge.
  • Kubernetes or cloud deployment. Everything runs on one machine.

Architectural constraints

  • A coach's hour is never sold twice, however many clients ask for it at once and however many times one client repeats a request.
  • A booking is never confirmed without a credit behind it, and a credit is never spent twice. A booked session keeps its credit if the client's subscription lapses afterwards.
  • A coach's recurring hours keep their wall-clock time in her own zone across clock changes, in every region. The dates of the changes come from the IANA time zone database.
  • Amounts are exact to the cent. Prices and credit values are whole cents, and VAT is a fixed 21%.
  • A payment or video notice that arrives late, twice or out of order never moves a client's access or a coach's pay backwards. The order in which notices arrive never decides what a client may do or what a coach is paid.
  • When one capability is stopped, the capabilities that do not need it keep working. The ones that need it wait or say so, and finish once it is back. No crash, restart or repeated message loses a booking, a credit or a message, or applies one twice.
  • A private note is readable only by the coach who wrote it, and appears in no response to anyone else, export, notification, reminder or log.
  • A person's names, emails, message text, notes and free text are erased on request. Ledger entries, refunds, the join log and accepted terms stay, identified by ID.

Prerequisites

You should have finished an intermediate project or have equivalent experience: you can build an application with a database, run it on one machine, and write tests that cause failures. Any language and framework works. You do not need prior experience with payments or video, and you do not need to know how a coaching marketplace works; the first Phase explains the business and the words the brief uses. Having once shipped a bug that moved a meeting by an hour, or chased two systems that disagreed about the same payment, will make most of this brief feel familiar.

Create a free accountSign in

Free to start. An account is what keeps track of the checkpoints you finish.

Phase 1

Work out the rules and simulate a day

Produces a worked example of one coaching engagement in the client's real numbers, and a simulated client base with a clock a reviewer controls. Leaves every real behaviour of the product for later Phases.

Research

Implementation

Architectural walkthrough

How a coaching marketplace sells coach hours

The marketplace has 40 coaches and about 1,200 paying clients across six time zones. A coach sets her weekly hours in her own time zone, with a gap between sessions, a minimum notice for bookings, her own cancellation terms and the days she is away. A client sees those hours in her own time zone and books one session with one coach. The marketplace sends both people a reminder 24 hours before it starts.

Clients pay by subscription. A payment provider takes the card payment each month and sends the marketplace notices about every change to a subscription. A plan grants a number of credits each month, and every confirmed booking is backed by one credit. A video provider creates the meeting for each session and reports who joined and when. Between sessions the coach and the client exchange messages, and the coach keeps private notes and shares homework and goals.

A coach is paid for the credits clients spend on her sessions, after the marketplace takes its commission. A client can ask for a refund, and can also ask her bank to reverse a card payment. The operator is the person at the marketplace who deals with all of this when it goes wrong.

The words this brief uses:

  • Credit: what a client spends to book one session. A plan grants credits each month.

  • Buffer: the gap a coach keeps free between two sessions.

  • Late change: a cancel or reschedule made inside the cutoff before the start, which is 24 elapsed hours in the worked example. It forfeits the credit.

  • Emergency pass: a once-a-month exception to the late-change rule.

  • Grace window: how long after the start a person may still join before the session counts against her.

  • No-show: a person who did not join within the grace window.

  • Payment notice: the payment provider's message about a payment or subscription. It can arrive late, twice or out of order.

  • Private note: a coach's note about a client that only that coach may read.

  • Commission: the share of a credit's value the marketplace keeps, 20 percent.

  • Card dispute: a client asking her bank to reverse a card payment, which the marketplace then answers with evidence.

Why the rules come first

A team that starts building before it has worked the client's rules by hand ships the same mistakes. Amounts are computed on the wrong base, a credit is worth the wrong figure, and a session lands at the wrong hour for someone in another time zone. A client or a coach finds each one, not a test, because the code that computes it looks right.

Four rules catch people who guess. VAT is added on top of the plan price, so a client on the 2-credit plan pays 29,040 cents for a plan priced at 24,000. The coach is paid from the net value of a credit after the platform's 20 percent commission, which is a different figure from anything the client paid. The late-change cutoff is 24 elapsed hours, and that is not the same clock time on the day before a clock change. A recurring Tuesday 09:00 is the coach's wall clock, and a client in another zone sees it at different hours in different weeks.

The only failure this Phase has to survive is a restart: the simulated people a reviewer creates must still be there afterwards. Every later test reuses the worked example and the simulated population from here, so a figure that is wrong in the example is wrong in everything built on it.

Phase 2

Publish coach availability

Produces the hours a coach publishes in her own time zone, her buffers and terms, and holiday blocks. Leaves slots, holds and bookings for Phase 3.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A coach who says "Tuesday 09:00" means 09:00 on her own wall clock in every week of the year. A product can show that hour correctly on the day she saves it and an hour off after her region changes its clocks. Nothing fails when that happens. The session is at the wrong hour, and the first anyone knows is a client joining early or late. In the client's account, eleven clients did exactly that in the weeks after the US changed its clocks and Europe had not.

Two regions that change on different dates are where this bites. The US changed on 8 Mar 2026 and Europe on 29 Mar 2026, so for three weeks a New York coach and a Berlin client sit one hour closer than usual. Code that is right for one region only because of that region's dates fails for the other. The hours that do not exist on a change day, and the hour that happens twice, are the other places it fails.

A coach also edits from more than one device. An edit made on a phone that was offline can reach the product after a newer edit made on a laptop. If the older edit wins, clients see hours she has already withdrawn and book them. The coach finds out when she is not there, and the client has paid for an hour nobody is offering.

Phase 3

Book a slot

Produces the list of open slots, the 10-minute hold and a confirmed booking. Leaves payment for Phase 5, so a booking here costs the client nothing and is replaced there.

Implementation

Implementation

Testing

Architectural walkthrough

Two clients were confirmed for 17:00 on a Thursday, and the coach found out in the call. Each client asked whether the slot was free before the other's booking existed, and each was told yes. The client who arrives at an hour that is not hers has paid for nothing, and the coach has two people in her calendar for one hour.

The same problem has smaller forms. A slot held for a client who never finishes looks sold for as long as the hold lasts, and a coach loses the chance to fill it. A list of open slots that a client loaded a minute ago can be stale, so she picks a slot someone else has since taken and needs a clear refusal, not a second booking. A confirm request sent twice by a double tap must not produce two bookings.

The sharpest case is a popular coach opening her slots, with 25 clients asking for the same one inside a second. The outcome has to be one client with the slot and 24 told it is taken, every time.

Phase 4

Sell subscriptions and decide access

Produces plans, monthly credits, the terms a client accepts, renewals with retries, and cancel and plan change. Leaves spending credits on bookings for Phase 5.

Implementation

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

The payment provider reports what happened to a payment in messages. They can arrive twice, hours late (it retries for up to 3 days) and in a different order from the changes they describe, and it expects an answer within 3 seconds or counts the delivery as failed. Access decided by the order messages arrive in locks out a client who has paid, because a late failure notice lands after the payment that fixed it. It also leaves a client whose renewal failed booking for nine days, as it did in the client's account.

Credits are what the platform sells. Credits granted when a renewal falls due, and not when the money arrives, give sessions away for payments that then fail. A failed renewal is retried up to 8 times within 14 days, and a client whose failure needs her to act, such as authenticating her card, should not wait out the 14 days. A renewal that falls due while the provider is unreachable says nothing about her card, and counting it as a failure lapses paying clients for the vendor's outage.

A purchase with no record of the terms the client accepted, or of her request to start at once, cannot be defended in a card dispute. The client loses the sale and pays a fee. The stand-in provider you build in this Phase has to be able to cause each of these failures, because a stand-in that never misbehaves tests none of them.

Phase 5

Pay for a booking with a credit

Produces bookings paid for with a credit, including credits that come back, expire and run out. Replaces the free booking from Phase 3 and leaves cancellations for Phase 6.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A booking takes steps that cannot happen at one instant: the slot is set aside, the client's right to spend a credit is checked, and the session is confirmed. A process can die between any two of them. If it dies after the credit is taken, the client has lost a credit for a session that was never confirmed. If it dies after the slot is set aside, a popular hour sits held with nobody in it until a coach asks why her calendar is empty. Neither failure shows an error to anyone.

Credits add failures of their own. A credit that comes back after the client's access has ended is useless to her unless she is paid for it. A credit used out of order expires while a newer one sits unused. A credit that arrives for a slot whose hold has already ended must not become a booking on an hour another client now holds.

Payment checking can also stop while the rest of the product runs. Clients must still see open slots and coaches' calendars must stay correct. Only the booking that needs a credit waits.

Phase 6

Reschedule, cancel and withdraw

Produces the late-change rules, coach cancellations, rescheduling across clock changes and the refund on withdrawal. Leaves video sessions and no-shows for Phase 7.

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A late change at the edge of the cutoff keeps or loses a credit worth 12,000 or 11,000 cents net, and one hour on a clock-change day decides which. A cutoff of 24 hours counted on the wall clock is not 24 elapsed hours on the Saturday before the clocks change. A client told "on time" by the product and "late" by the coach has a dispute that no rule settles.

A coach who cancels, or a holiday she blocks over an existing booking, must never cost the client a credit. A client who withdraws within 14 days is owed the unused part of what she paid. A refund applied twice, for the wrong amount or never is money lost by the client or by the platform. A credit returned to a client whose access has ended has nowhere to go, and she is left with a session she paid for and never got.

Two requests for the same cancel, sent at the same moment, must refund once. A product that dies in the middle of a cancel must not leave a freed slot with a spent credit, or a held slot with a returned one.

Phase 7

Run the session by video

Produces a video meeting for every confirmed booking, a record of who joined and when, and a decision about the credit when someone does not show up. Reminders and messages are left for later Phases.

Implementation

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

Today the video meeting is created while the client waits for her booking. When the video vendor refuses a coach's hundred-and-first meeting of the day, or goes unreachable for the better part of two hours, the booking fails with it. A client who just paid for a credit sees an error, the coach's hour looks free to the next client, and the persona's afternoon of failed calls follows.

Join reports from the video vendor are the second problem. They arrive twice, hours late, or not at all. A client who sat in the room for the full hour but whose join report never came is marked absent, loses her credit and gets no explanation. A coach who never joined is marked present and is paid for an hour that did not happen. Each wrong call costs the platform either a paying customer or a payout it has to claw back.

A no-show decides money, so it carries the highest cost of the three. The decision comes 15 minutes after the start and cannot wait for a report that may never come. A client who first joins at minute 16 has already lost the credit, and the client accepts that cost.

What to check in your own build: a booking made while the video vendor is unreachable still stands, a join reported twice is one join, and a report that arrives after the window but proves the person was there in time changes the outcome.

Phase 8

Remind and notify

Produces one reminder per session and person, due 24 hours before the start and written in the recipient's own time zone. Alerts about messages, shared items and payouts are left for later.

Implementation

Implementation

Testing

Architectural walkthrough

A reminder that names the wrong hour sends a client to a call that already happened. The wrong hour is easy to produce: a coach in New York and a client in Berlin are one hour closer than usual for three weeks, and a reminder worked out as "24 hours earlier at the same clock time" is off by an hour on the days either region changes its clocks.

A reminder sent twice teaches people to ignore reminders, and the second copy usually comes from the same cause that makes a restart or a repeated booking message hard to see: the product cannot tell that it already sent one. A reminder that is never sent costs the coach an empty hour.

The third failure is a stopped reminder capability that takes booking down with it. A client who cannot book because reminders are stopped has been charged for a feature that was supposed to help her. Reminders must be able to stop and restart while bookings keep confirming.

What to check in your own build: the hour in each email is right for the person who reads it on a clock-change day, one session gives one reminder per person however many times the product is restarted or told about the booking, and a session that is moved or cancelled never sends a reminder for its old hour.

Phase 9

Message between sessions

Produces one conversation per coach and client pair, shown once and in the same order to both people, closed to writing when access lapses. Message alerts and privacy requests are left for later Phases.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A double tap on "send" must not show the message twice, and a lost answer followed by a second send must not either. Two people see the same conversation in different orders when the order depends on the clocks of their phones, which can differ by hours. Each wrong order turns a coach's advice into a confusing exchange and gives the coach a reason to move the conversation to her own email, outside the platform.

Messaging that stays open to a lapsed client keeps a coach working for free, and messaging closed by a late failure notice for a client who has already paid locks out a customer at the wrong time. Messaging must also work when other parts of the product are stopped: a coach who cannot reach a client because booking is stopped stops trusting the platform.

What to check in your own build: opening a conversation depends on a confirmed booking and nothing else, sending the same message twice stores it once, and a restart while two people are typing loses no message that was shown as sent.

Phase 10

Keep notes and honour privacy requests

Produces private notes only their coach can read, homework and goals shared with the client, consent that takes effect at once, and a person's export and erasure. Payout records are left for the Phase that creates them.

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A template once showed a coach's private note to the client it was about. The note was written for the coach alone, and a client who reads "she avoids the hard conversations" about herself leaves the platform and tells other people why. Private notes and shared homework look alike to the person typing them, so the line between the two has to hold wherever the text could end up: a screen, an email, an export, a notice, a record kept for support.

An export that silently leaves out one part of the platform is a false answer to a person who asked, in law, for everything. An erasure has the opposite risk. One that removes the records the books and the tax office depend on breaks the client's accounts, and one that leaves names and message text in any part keeps a promise it did not make.

Consent changes take effect when they are made. A client who withdraws consent to coach notes expects them gone that day, and a coach who still sees them has been handed data the client said no to.

What to check in your own build: a distinctive private note text appears nowhere except in the view of the coach who wrote it, an export says which of its parts are still being gathered when something is stopped, and an erasure says it is complete only once it has been done everywhere.

Phase 11

Pay coaches and settle disputes

Produces monthly coach payouts with a statement she can check line by line, a way to take back part of a payout when a refund is owed, and card dispute answers built from the join record and accepted terms. Operating the platform under failure is left for the last Phase.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

Payouts are worked out by hand in a spreadsheet at month end, and a refund is applied to whichever payout is open. A coach who cannot check what she was paid by comparing the statement with her own diary has no reason to believe the number. A refund taken from the wrong payout is a coach paid less than she earned, found out when she phones.

A payout that covers the previous month must not shift when a session's money arrives late. A coach paid on the 1st must be able to rely on the total she was told, and an entry that belongs to the month that closed must be paid in the next run and say so. The run for the same instant can be started twice by mistake, and it must not pay anyone twice.

A card dispute has a 7-day window and the evidence is spread across sessions, joins and the terms the client accepted. A dispute lost for lack of evidence costs the client the sale and a fee. The window is short enough that a manual process misses it the first time the person who owns it is away.

What to check in your own build: every payout equals its statement to the cent, a refund reduces the right payout once, and every dispute gets an answer inside the window.

Phase 12

Operate the platform

Produces the operator's view of one booking, a way to retry failed work once its cause is fixed, and the proof that the product survives a release, the opening rush and a weekday with every failure at once. It leaves nothing for later.

Implementation

Implementation

Testing

Testing

Testing

Testing

Architectural walkthrough

A day that mixes a video outage, late payment notices, a clock change and a restart is where the failures that cost a coach or a client live. Each failure is survivable alone. Together they find the booking that has a credit but no meeting, the client who paid and is locked out, and the session that happened at the wrong hour.

An operator who cannot see what happened to one booking phones the coach, then the client, then an engineer, and the client hears about the problem three times. Work that fails every time must not block the work behind it, and fixing the cause must be enough to finish it.

Replacing one capability while clients are booking drops bookings in the gap. The busiest morning is when next week's slots open: 1,200 clients look at the same coaches at once and answers slow down just as 160 of them try to book. A slow answer makes a client tap twice, and two taps at the busiest moment are where double bookings come from.

What to check in your own build: every confirmed booking has a credit, no coach has two bookings at the same time, access matches what the payment provider finally says, and every number you commit is one you got from running the test.

Architectural walkthrough

Two scarce things, and one chance to sell each

A coaching session needs two things that cannot be made on demand. One is an hour of a coach's time. The other is a client's right to spend a credit on it. The old application checked both and then wrote the booking. Two clients passed the check in the same second, and both were told they had the hour.

The cost is not the second confirmation email. It is the coach finding out in the call, and the client who paid for an hour that does not exist. Your build has to hold when 25 clients ask for one slot at once, and when one client's request is sent twice by a double click.

A booking that is only half done

A booking needs a slot held, a credit spent and a session confirmed. These cannot all happen at one instant, and a process can die between any two of them. If it dies after the credit is taken, the client has paid for a session that was never confirmed. If it dies after the slot is set aside, a popular Thursday hour disappears from sale with nobody in it, and nobody finds out until a coach asks why her calendar is empty.

For up to 10 minutes a slot looks taken that is not yet sold. That is fine while the hour always comes back, and it is a lost hour when it does not. A credit that was taken for a booking that never completed has the same cost on the client's side.

Payment and video notices do not arrive once, on time and in order

The payment provider and the video provider both report what happened by sending notices, and neither promises order or a single delivery. A failure notice can arrive after the payment that fixed it. A join notice can arrive after the grace window has closed. A product that believes each notice as it arrives locks out a client who has paid, or marks someone absent who was in the room.

Each wrong answer lands on a person. A locked-out client cancels. A coach marked absent is not paid, and a client marked absent loses a credit she should have kept. A notice that never arrives at all leaves a client's access or a session's outcome wrong with nothing to correct it.

Wall-clock time is the coach's, instants are the platform's

A coach who says "Tuesday 09:00" means 09:00 on her wall, every Tuesday, whatever her region does to its clocks. The US changed its clocks on 8 Mar 2026 and Europe on 29 Mar 2026, so for three weeks New York and Berlin sat one hour closer than usual. One region's change is easy to get right by accident. Two regions changing on different dates are where the eleven clients in the persona's story came from.

The cutoff for a late change is the other half of the same problem. It is elapsed hours before the start, and on a clock-change day 24 elapsed hours is not the same clock time the day before. A client who cancels at the edge is charged or not charged by that difference.

One stopped capability must not stop the rest

The video vendor was unreachable for under two hours, and every call in that window failed. A video outage should leave booking, payments and messaging working, and sessions should move to a backup. The same holds for reminders, messaging and the rest: a capability that stops should delay only what needs it.

The same is true of a release. Replacing one part of the product while clients are booking must not drop a booking or send a reminder twice. The client's busiest morning is when this is found out, because it is when the load is highest.

What must stay private

A private note is the one record that must never reach anyone but its author. A template bug once showed one to a client, and one visible note ends a coaching relationship. Notes, messages and personal fields also have to be erasable on request, while the records that explain money stay, identified by ID, because a payout nobody can trace is a bug of its own.

Where it shows if you cut a corner

If two clients can still take the same hour, the 25-at-once test in Phase 3 finds the second booking. If a payment notice is believed in arrival order, the out-of-order test in Phase 4 leaves a paying client locked out. If a crash can strand a credit, the mid-booking test in Phase 5 finds it. If a note's text reaches anything an operator or another client can see, the search in Phase 10 finds it. The opening rush, the release and the weekday with every failure at once in Phase 12 find what the single-failure tests missed. Each of these fails in your test run before a coach finds the problem in a call.