All Questions
Multi Step Processes medium

When a user uploads a photo, you need to: 1. Resize it, 2. Update their profile, 3. Analyze it for AI tags. You want these to happen in parallel. Which pattern fits best?

  1. A Fan-Out (Publish-Subscribe): Publish one 'PhotoUploaded' event that triggers 3 separate consumers.
  2. B Batch Processing.
  3. C Chain of Responsibility (A -> B -> C).
  4. D Single Threaded Loop.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions