frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

We scaled PgBouncer to 4x throughput

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
48•saisrirampur•1h ago

Comments

odie5533•36m ago
Article should show the config:

[pgbouncer] listen_addr = 0.0.0.0 listen_port = 6432 so_reuseport = 1 peer_id = 1 unix_socket_dir = /tmp/pgbouncer1

[peers] 1 = host=/tmp/pgbouncer1 2 = host=/tmp/pgbouncer2 3 = host=/tmp/pgbouncer3 4 = host=/tmp/pgbouncer4

nosefrog•30m ago
Interesting. We run pgbouncer via kubernetes so it was straightforward to make multiple pgbouncer processes on one machine. Also straightforward to get them running on multiple machines, which helps because we run on Azure and they like to cause rolling outages across our fleet via VM maintenance...
jauntywundrkind•28m ago
This was more for fun than real use, but I greatly enjoyed hacking something similar into rqbit bittorrent client. I wanted to run an instance of 'rqbit download' per torrent via so_reuseport. When a peer tries to connect, it gets sent to a random instance. So I built a whole rendezvous system, where instances find each other & either proxy data to each other or fd pass the socket to each other directly to get the peer socket to the instance that needs it. It uses postcard rpc to chat between instances.

Clickhouse's so_reuseport rendezvous needs are obviously for a very different, but fun to see some so_reuseport coordination like this (for a much more practical use)!

It'd be really neat to have some kind of general peering protocol that different apps could use. This whole exercise was gratuitous as heck for my application, I don't even really intend to use this, but it was a fun path to walk down. So I don't really know what the broader protocol would really be for, what we would use it for. But it seems like such a cool idea! A shared Turso database would probably be a bit more practical than the rpc system, honestly. Ha.

https://github.com/rektide/rqbit/tree/peering

nzeid•4m ago
Was there a disadvantage to using HAProxy + multiple PGBouncer instances?

Modern Decor May Be Straining People's Brains

https://studyfinds.com/modern-decor-may-be-straining-peoples-brains/
1•downwithdisease•26s ago•0 comments

Chinese courts allow heirs to inherit accounts of deceased gamers

https://www.tomshardware.com/tech-industry/big-tech/chinese-courts-allow-heirs-to-inherent-accoun...
1•thisislife2•53s ago•0 comments

Show HN: Reame – a CPU inference server that gets faster as it runs

https://github.com/swellweb/reame
1•targetbridge•1m ago•0 comments

Store Arbitrary Data on Anything

https://fliptable.nyc
1•spaghetti-code•1m ago•0 comments

Local-first agent governance: keeping an AI agent contained

https://vektorgeist.com/blog
1•VektorGeist•2m ago•0 comments

Dynamic Dispatch

https://intertwingly.net/blog/2026/07/11/Dynamic-Dispatch.html
1•ingve•5m ago•0 comments

Monist, a WebGPU compiler for non-well-founded set theory

https://firstsynth.dev/monist
1•thingltd•9m ago•0 comments

Agentation – Visual UI Annotation for AI Coding Agents

https://www.agentation.com/
2•rekl•12m ago•0 comments

More Americans are aging alone. One woman told us what it's like

https://www.msn.com/en-us/news/crime/more-americans-are-aging-alone-one-woman-told-us-what-it-s-l...
1•like_any_other•12m ago•0 comments

Show HN: I Wanted AI Code Review I Could Own. So I Built Codra

https://medium.com/@devarshidev/i-wanted-ai-code-review-i-could-actually-own-so-i-built-codra-bee...
1•devarshishimpi•13m ago•0 comments

Cancelled by your future self? The fear isn't censorship. It's permanence

https://indianexpress.com/article/fresh-take/gen-z-digital-permanence-self-censorship-nep-2020-un...
1•thisislife2•14m ago•1 comments

The Great Wave Has Arrived (Memo from GLM CEO Jie Tang)

https://twitter.com/bingxu_/status/2075961011816092158
1•antinucleon•14m ago•0 comments

Git Takes Another Step Towards Making Rust Mandatory [video]

https://www.youtube.com/watch?v=I_6Mnvobi3c
2•baranul•14m ago•0 comments

Wheeler's Delayed-Choice Experiment

https://en.wikipedia.org/wiki/Wheeler%27s_delayed-choice_experiment
1•thunderbong•14m ago•0 comments

Canadian Junior Golf Association recruits players

https://rpgolf.wordpress.com/2026/07/11/canadian-junior-golf-association-gives-youngsters-chance-...
1•yankflank•15m ago•0 comments

Show HN: Make any website agent-ready in one script tag

https://www.openhermit.com
1•not_wowinter13•17m ago•0 comments

The Dangerous Myth of Flexibility

https://prospect.org/2026/07/09/dangerous-myth-of-flexibility-uber-lyft-gig-economy/
2•hn_acker•18m ago•0 comments

C++20 Improved the For-Loop Syntax

https://lzon.ca/posts/tips/cpp-for-range-init/
1•jpmitchell•18m ago•0 comments

Show HN: Combo.gg – Plans in seconds, for any game

https://combo.gg/
1•ca98am79•22m ago•0 comments

What loss.backward() actually does

https://oraziorillo.com/blog/what-loss-backward-actually-does/
1•oraziorillo•23m ago•1 comments

We Know Simple Fluids Can Flow. Turns Out, Some Can Fracture.

https://www.quantamagazine.org/we-know-simple-fluids-can-flow-turns-out-some-can-fracture-20260710/
1•Brajeshwar•24m ago•0 comments

SpaceX prepares for Starship Flight 13; company works toward orbital operations

https://www.yahoo.com/news/science/articles/spacex-prepares-starship-flight-13-022121988.html
1•bookmtn•27m ago•0 comments

Is There Any End to the Atlantic's "End-Ism" Fetish?

https://newrepublic.com/article/212923/the-atlantic-magazine-endism-fetish
4•amadeuspagel•29m ago•0 comments

SpaceX Flight 13 Starship

https://www.spacelaunchschedule.com/launch/starship-flight-13/
2•bookmtn•29m ago•0 comments

Show HN: Free AI Visibility Audit Tool& Agent

https://ai-visibility.pro
2•andytan•29m ago•0 comments

The Great American Fun Shortage of 2026

https://www.bloomberg.com/news/articles/2026-07-10/the-great-american-fun-shortage-of-2026
1•mancerayder•30m ago•0 comments

Dither Kit: A Free Dithered Chart Package

https://www.tripwire.sh/dither-kit
3•grapplingdev•32m ago•0 comments

JPEG-XL Libjxl 0.12 Brings More Performance Optimizations

https://www.phoronix.com/news/JPEG-XL-libjxl-0.12
1•ksec•37m ago•0 comments

Frame money with value, not morality

https://herbertlui.net/frame-money-with-value-not-morality/
2•herbertl•38m ago•0 comments

Open Book Touch – open-source e-reader

https://www.crowdsupply.com/oddly-specific-objects/open-book-touch
2•philips•39m ago•0 comments