3 ms·
It sounds like they're accepting really simple HTTP requests (event updates) and inserting a job in a queue. Really simple + rarely changing + needs to scale t
by staunch 15y ago
It sounds like they're accepting really simple HTTP requests (event updates) and inserting a job in a queue.
Really simple + rarely changing + needs to scale to really high req/sec = perfect candidate for being written in C. Maybe as an nginx module?
- megaman821 15y agoThis is only true if the queue isn't the bottle neck. If the queue can only handle 2,500 req/s and the Python program can send at 3,000 req/s, what use is it writing a C program that sends at 12,000 req/s?
- staunch 15y ago1) Get a faster queue. 2) Create a QueueQueue that batch inserts.