Done testing memcached for localflare zerolith's future 'blast processing' KV cache of choice.
Utilized local LLM to adapt APCU test code to memcached, reviewed, and stripped out the added bloat and gymnastics routines.
57000 single threaded writes/sec via TCP/IP = 0.0175ms/write. APCU was more like 0.01ms/write. Smaller difference than expected.
TCP/IP is the slow protocol; unix sockets or UDP are said to be faster but i couldn't figure them out.
I'd say 'fast enough' considering that if we had 4 cores rockin', we are in the 200k req/sec range.
894mb used for 9 million IP address records, 50% smaller footprint than APCU, and i haven't even fine-tuned slab/chunk sizes ( theoretically sizeable memory reduction )
No unexpected memory allocation behavior or consumption spikes seen yet. The opposite of APCU.
Has Ubuntu package and works immediately upon install. KISS principle compliant.
I'm betting that locaflare could handle >=75k hit/sec on a 4 core before any tuning, which is 10x faster than i've seen the fastest botnet run.
If we can refer bot bans up to iptables like fail2ban does, then we greatly offload localflare and achieve high efficiency.
Fail2ban is using 444mb ram for ~40k unique IP addresses and gets outran at ~200 req/sec because it's single threaded, unlike localflare.
I'll do more feasability and performance testing but the possibility of localflare working out seems very high!