Get the latest tech news

How we manage individual user concurrencies with Nginx and Lua


A behind the scenes of how we manage fluctuating browser concurrency limits across our thousands of users.

Identifying the Optimal Location - Recognizing that all traffic passes through the load balancer, I determined it to be the ideal point for implementing connection limits. This posed a significant challenge as it necessitated periodic service restarts to prevent crashes, prompting an exhaustive investigation to identify and resolve the underlying issue. Additionally, to enhance performance and minimize database queries, we incorporated a local cache with a Time-to-Live (TTL) mechanism to store customer limits.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of nginx

nginx

Photo of lua

lua

Related news:

News photo

Nginx 1.26 Released With Experimental HTTP/3 Support

News photo

Nginx 1.26.0 Stable Released

News photo

Lunatik: Lunatik is a framework for scripting the Linux kernel with Lua