Card 09/ 10

ExerciseDifficulty: Advanced1 min

Practice: A Style for Three Products

A two-person startup, a bank's payments platform and an image resizer.

Choosing a style from the team and the product is practised here on three briefs that look nothing alike. For each, choose a style, name the pressure that decided it, and name the main risk, before opening the answers.

The briefs.

  1. Two engineers are building a booking app for yoga studios. The product changes every week as they learn what studios want.
  2. A bank's payments platform is built by twelve teams: cards, transfers, fraud checks, statements and others. Each must release on its own schedule, and fraud checks must react to every payment.
  3. A photo site needs thumbnails made when users upload images. Uploads arrive in bursts in the evening, and almost none at night.
Check your answers
  1. A modular monolith. One small team and a product still changing shape: every change would cross service boundaries, and running services would eat the week. Risk: modules reaching into each other's tables, which makes a later split hard.
  2. Microservices, with events between them. Twelve teams need to release separately, and fraud checks, statements and notifications all react to each payment, which suits events. Risk: shared databases, and payments needing consistency across services, which needs sagas and careful tracing.
  3. A serverless function for the resizing. Short jobs, triggered by uploads, uneven through the day, idle at night. Risk: cold starts, which do not matter here because nobody waits on a thumbnail, and per-call cost if uploads became steady and heavy.