Put a ring on it: a lock-free MPMC ring buffer

One of the reasons few security products work well in busy Linux environments is that they amplify performance risk. You&rsquo;re popular and your backend&rsquo;s load is skyrocketing? Well, the typical product is just going to collect more data and do more analysis, which amplifies the degradation. In the real world, one of the key ways everyone deals with being overloaded is by dropping less…