Saving to disk every 100ms instead of every 10ms will probably work better,
I think.
Log data to a file instead of sending it directly to the server
Start work on the cache flusher: iterate through the generated files
Actually read the events from the cache files
Actually send the event batches when flushing the files