Kuba Suder • @mackuba.eu on 🦋<p>Nice, I went from ~2k evt/s max to ~3.6k with a few fixes (partial index, ActiveRecord + <a href="https://martianbase.net/tags/rubylang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rubylang</span></a> update, YJIT on, batched saves in one insert, and matching using a <a href="https://martianbase.net/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> module). One more thing to try (turning off Pg wal sync) :)</p><p>The theoretical max possible would be ~5.5k, this is what it did on a test where it doesn't actually process anything, just reads from the socket. Although maybe the "async" lib would do better than eventmachine?…</p><p>Though at 7.5k I hit the VPS bandwidth limit.</p>