The Event Collector system was one of the legacy systems at Treasure Data. Over time it faced several performance and scalability problems as usage increased. Engineers addressed these problems through optimizations like increasing socket backlogs, caching parsers, running processes in parallel, and moving deduplication to a separate thread to avoid blocking the input pipeline. These changes helpe