# Storm in under a second

- Speaker: [Reem Bensimhon](/wiki/speakers/reem-bensimhon.md)
- Event: [Reversim Summit 2015](/wiki/years/2015.md)
- Video: https://www.youtube.com/watch?v=zcqcZ_0d5Lk
- Transcript: [/transcripts/2015/06-zcqcZ_0d5Lk.md](/transcripts/2015/06-zcqcZ_0d5Lk.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Architecture](/wiki/topics/architecture.md), [Distributed Systems](/wiki/topics/distributed-systems.md), [Machine Learning](/wiki/topics/machine-learning.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses how their fraud detection startup uses Apache Storm to build a low-latency decision engine that meets strict SLA requirements. The talk covers the evolution from an initial naive Node.js prototype to a robust architecture that separates data collection from real-time decision-making. The audience learns practical architectural patterns, such as using max spout pending and handling timeouts to ensure predictable performance under heavy loads. Additionally, the speaker explains how graceful degradation allows the system to return partial answers rather than failing when under extreme pressure.

## Key points

- [0:08](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=8s) The speaker introduces the company's domain in fraud detection and outlines the agenda focusing on Apache Storm.
- [6:49](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=409s) The initial naive prototype was built using Node.js for rapid time to market, but it struggled with external network latency and data dependencies.
- [11:24](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=684s) Apache Storm was chosen for its static topologies, JVM ecosystem support, and stateless deployment model.
- [13:29](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=809s) The architecture separates data collection and external API calls from the real-time decision pipeline to protect the sub-second SLA.
- [17:45](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=1065s) Running the decision topology on a single machine helps avoid network fluctuations and simplifies latency control.
- [20:58](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=1258s) Using the max spout pending feature is critical to limiting concurrency and preventing system saturation during traffic peaks.
- [23:12](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=1392s) Custom handling for joins and error propagation prevents blocked pipelines and cascading timeouts.
- [31:59](https://www.youtube.com/watch?v=zcqcZ_0d5Lk&t=1919s) Garbage collection tuning and graceful degradation ensure that the system still returns answers under heavy load even if data is partial.

## Takeaways

- Separate heavy data collection and external API calls from strict low-latency decision paths.
- Use framework mechanisms like max spout pending to control concurrency and maintain predictable latencies under load.
- Implement graceful degradation to return partial or approximate results rather than violating strict SLAs during traffic spikes.

## Questions this talk answers

- How can you achieve sub-second SLAs in stream processing frameworks when relying on external network services?
- What strategies can prevent pipeline saturation and control latency during peak traffic in Apache Storm?
- How do you handle data dependencies and error propagation in static stream topologies without hurting performance?

## Technologies

Apache Storm, Node.js, Java, Python, Redis, Scala, Clojure

## Tags

architecture, distributed systems, fraud detection, latency optimization, scaling, stream processing
