Using Clickhouse for L7 Ddos and Bot Traffic Analytics with Tempesta Fw
Postedabout 1 month agoActiveabout 1 month ago
tempesta-tech.comTech Discussionstory
informativepositive
Debate
20/100
Ddos ProtectionAPI SecurityTraffic Analysis
Key topics
Ddos Protection
API Security
Traffic Analysis
Discussion Activity
Light discussionFirst comment
29s
Peak period
1
0-1h
Avg / period
1
Key moments
- 01Story posted
Dec 3, 2025 at 2:10 PM EST
about 1 month ago
Step 01 - 02First comment
Dec 3, 2025 at 2:11 PM EST
29s after posting
Step 02 - 03Peak activity
1 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Dec 3, 2025 at 2:11 PM EST
about 1 month ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 46138607Type: storyLast synced: 12/3/2025, 7:20:12 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
We explore a different approach: classifying HTTP client requests in near real time using ClickHouse as the primary analytics backend.
We collect access logs directly from Tempesta FW (https://github.com/tempesta-tech/tempesta), a high-performance open-source hybrid of an HTTP reverse proxy and a firewall. Tempesta FW implements zero-copy per-CPU log shipping into ClickHouse, so the dataset growth rate is limited only by ClickHouse bulk ingestion performance - which is very high.
WebShield (https://github.com/tempesta-tech/webshield/), a small open-source Python daemon:
* periodically executes analytic queries to detect spikes in traffic (requests or bytes per second), response delays, surges in HTTP error codes, and other anomalies;
* upon detecting a spike, classifies the clients and validates the current model;
* if the model is validated, automatically blocks malicious clients by IP, TLS fingerprints, or HTTP fingerprints.
To simplify and accelerate classification — whether automatic or manual — we introduced a new TLS fingerprinting method.
WebShield is a small and simple daemon, yet it is effective against multi-thousand-IP botnets.