frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Scaling request logging with ClickHouse, Kafka, and Vector

https://www.geocod.io/code-and-coordinates/2025-10-02-from-millions-to-billions/
55•mjwhansen•5d ago

Comments

rozenmd•1h ago
Great write-up!

I had a similar project back in August when I realised my DB's performance (Postgres) was blocking me from implementing features users commonly ask for (querying out to 30 days of historical uptime data).

I was already blown away at the performance (200ms to query what Postgres was doing in 500-600ms), but then I realized I hadn't put an index on the Clickhouse table. Now the query returns in 50-70ms, and that includes network time.

nasretdinov•54m ago
BTW you could've used e.g. kittenhouse (https://github.com/YuriyNasretdinov/kittenhouse, my fork) or just a simpler buffer table, with 2 layers and a larger aggregation period than in the example.

Alternatively, you could've used async insert functionality built into ClickHouse: https://clickhouse.com/docs/optimize/asynchronous-inserts . All of these solutions are operationally simpler than Kafka + Vector, although obviously it's all tradeoffs.

devmor•51m ago
There were a lot of simpler options that came to mind while reading through this, frankly.

But I imagine the writeup eschews myriad future concerns and does not entirely illustrate the pressure and stress of trying to solve such a high-scale problem.

Ultimately, going with a somewhat more complex solution that involves additional architecture but has been tried and tested by a 3rd party that you trust can sometimes be the more fitting end result. Assurance often weighs more than simplicity, I think.

nasretdinov•43m ago
While kittenhouse is, unfortunately, abandonware (even though you can still use it and it works), you can't say the same about e.g. async inserts in ClickHouse: it's a very simple and robust solution to tackle exactly the problem the PHP (and some other languages') backends often face when trying to use ClickHouse
frenchmajesty•42m ago
Thanks for sharing I enjoyed reading this.
tlaverdure•36m ago
Thanks for sharing. I really enjoyed the breakdown, and great to see small tech companies helping each other out!
mperham•7m ago
Seems weird not to use Redis as the buffering layer + minutely cron job. Seems a lot simpler than installing Kafka + Vector.

NanoChat – The best ChatGPT that $100 can buy

https://github.com/karpathy/nanochat
454•huseyinkeles•4h ago•66 comments

First device based on 'optical thermodynamics' can route light without switches

https://phys.org/news/2025-10-device-based-optical-thermodynamics-route.html
33•rbanffy•4d ago•2 comments

Show HN: SQLite Online – 11 years of solo development, 11K daily users

https://sqliteonline.com/
263•sqliteonline•7h ago•104 comments

Dutch government takes control of Chinese-owned chipmaker Nexperia

https://www.cnbc.com/2025/10/13/dutch-government-takes-control-of-chinese-owned-chipmaker-nexperi...
74•piskov•10h ago•35 comments

Root cause analysis? You're doing it wrong

https://entropicthoughts.com/root-cause-analysis-youre-doing-it-wrong
21•davedx•2d ago•8 comments

JSON River – Parse JSON incrementally as it streams in

https://github.com/rictic/jsonriver
92•rickcarlino•5d ago•52 comments

Scaling request logging with ClickHouse, Kafka, and Vector

https://www.geocod.io/code-and-coordinates/2025-10-02-from-millions-to-billions/
55•mjwhansen•5d ago•7 comments

Ask HN: Has AI stolen the satisfaction from programming?

33•marxism•57m ago•32 comments

Android's sideloading limits are its most anti-consumer move

https://www.makeuseof.com/androids-sideloading-limits-are-anti-consumer-move-yet/
357•josephcsible•4h ago•200 comments

CRDT and SQLite: Local-First Value Synchronization

https://marcobambini.substack.com/p/the-secret-life-of-a-local-first
28•marcobambini•4d ago•4 comments

Spotlight on pdfly, the Swiss Army knife for PDF files

https://chezsoi.org/lucas/blog/spotlight-on-pdfly.html
274•Lucas-C•11h ago•81 comments

Optery (YC W22) – Hiring Tech Lead with Node.js Experience (U.S. & Latin America)

https://www.optery.com/careers/
1•beyondd•3h ago

More random home lab things I've recently learned

https://chollinger.com/blog/2025/10/more-homelab-things-ive-recently-learned/
161•otter-in-a-suit•1w ago•76 comments

Reverse Engineering a 1979 Camera's Spec

https://blog.mano.lol/posts/film/
5•manoloesparta•1h ago•0 comments

American solar farms

https://tech.marksblogg.com/american-solar-farms.html
163•marklit•10h ago•198 comments

The Sveriges Riksbank Prize in Economic Sciences in Memory of Alfred Nobel 2025

https://www.nobelprize.org/prizes/economic-sciences/2025/summary/
102•k2enemy•8h ago•141 comments

Smartphones and being present

https://herman.bearblog.dev/being-present/
150•articsputnik•5h ago•98 comments

Programming in Assembly Is Brutal, Beautiful, and Maybe Even a Path to Better AI

https://www.wired.com/story/programming-assembly-artificial-intelligence/
30•fcpguru•1h ago•4 comments

Roger Dean – His legendary artwork in gaming history (Psygnosis)

https://spillhistorie.no/2025/10/03/legends-of-the-games-industry-roger-dean/
34•thelok•5h ago•7 comments

MPTCP for Linux

https://www.mptcp.dev/
91•SweetSoftPillow•10h ago•15 comments

Strudel REPL – a music live coding environment living in the browser

https://strudel.cc
3•birdculture•1h ago•0 comments

Environment variables are a legacy mess: Let's dive deep into them

https://allvpv.org/haotic-journey-through-envvars/
167•signa11•3h ago•116 comments

AI and the Future of American Politics

https://www.schneier.com/blog/archives/2025/10/ai-and-the-future-of-american-politics.html
86•zdw•5h ago•32 comments

Control your Canon Camera wirelessly

https://github.com/JulianSchroden/cine_remote
72•nklswbr•6d ago•16 comments

Clockss: Digital preservation services run by academic publishers and libraries

https://clockss.org/
52•robtherobber•5d ago•8 comments

Putting a dumb weather station on the internet

https://colincogle.name/blog/byo-weather-station/
138•todsacerdoti•6d ago•36 comments

America's future could hinge on whether AI slightly disappoints

https://www.noahpinion.blog/p/americas-future-could-hinge-on-whether
46•jxmorris12•2h ago•30 comments

Jeep software update bricks vehicles, leaves owners stranded

https://www.thestack.technology/jeep-software-update-bricks-vehicles-leaves-owners-stranded/
79•croes•3h ago•9 comments

LaTeXpOsEd: A Systematic Analysis of Information Leakage in Preprint Archives

https://arxiv.org/abs/2510.03761
64•oldfuture•11h ago•18 comments

Ofcom fines 4chan £20K and counting for violating UK's Online Safety Act

https://www.theregister.com/2025/10/13/4chan_ofcom_fine/
136•klez•5h ago•153 comments