Throughput of a fraud-detection pipeline

A fraud-detection service processes card transactions through a four-stage pipe-and-filter chain. Each filter runs as a single instance on its own core and handles one transaction at a time, with these service times per transaction:


Filter

Time per transaction (ms)

Tokenize

3

Enrich

15

Score

6

Store

9


Assume transfer time through the pipes is negligible and a steady stream of transactions is waiting. What is the maximum sustained throughput of the chain, in transactions per second, to the nearest whole number?

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Architectural Patterns Questions: