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?
Unlock full course notes by signing up
Maintenance benefits and their limits
A software team is comparing architectural patterns for three maintenance problems. Match each pattern to the benefit and limitation that best describe its use. Each description assumes the implementation preserves the pattern's intended separation of responsibilities.
Counting dependencies permitted by layering policies
A booking application has four layers in the order shown. Its team is comparing two dependency policies. Under strict layering, a layer may call only the layer immediately below it. Under relaxed layering, a layer may call any lower layer. Both policies forbid upward calls and calls within the same layer for this comparison.
For each layer, enter the number of other layers permitted to call it directly under each policy. Then enter the total number of permitted directed dependencies across the whole application. Count direct calls only; reaching a layer through an intermediary does not make the original caller a direct caller. Give exact integers.
Scaling a video pipeline to a target rate
A video platform processes uploaded video segments through a pipe-and-filter chain whose filters have these service times per segment: Ingest 4 ms, Transcode 30 ms, Thumbnail 10 ms and Publish 8 ms. Each instance handles one segment at a time, segments are independent, pipe transfer time is negligible, and a replicated filter splits segments evenly between identical instances. Ingest and Publish stay at one instance each; only Transcode and Thumbnail may be replicated. The chain must sustain at least 110 segments per second. Find the minimum number of Transcode instances, the minimum number of Thumbnail instances, the resulting maximum throughput in segments per second to the nearest whole number, and the latency of one segment in milliseconds, ignoring queueing delay (the chain is not backlogged).
Reducing traffic by reordering compatible filters
An archive preprocessing system uses a pipe-and-filter architecture. A batch contains 10,000 records, each initially 1,000 bytes wide. Three filters each run once:
Validation V retains exactly 80% of its incoming records and leaves their width unchanged.
Selection S retains exactly 25% of its incoming records and leaves their width unchanged.