News for hackers. Stuff that matters.
Re:Choose Postgres Queue Technology by sgarland on Monday September 25, 2023 @08:16AM (#37642510)
> What happens if you get 100x traffic?

Throttle the inputs. Rate-limiting doesn’t belong to the data layer.

While throttling due to organic popularity isn’t great, I’d argue the tradeoffs might be worthwhile. If it looks like the spike will last, stand up Redis during the throttling, double-write, and throttle down the Postgres queue until it’s empty. If you really need to, take a 15 minute outage to just copy data over.

There are no comments on this comment yet.