@chrifpa Small price to pay for simplicity though, I suppose. ZeroMQ is worth checking out though if you get some time in the future, gives you lots of options for little problems like this, also would make your code horizontally scale on multiple nodes.
@chrifpa well be careful though, because you could end up with multiple processes writing to the file at the same time. You could potentially create a check for a lock file and just sleep until its gone, but that's not very elegant.
@chrifpa well, I definitely think a db would be the way to handle this, but perhaps a process that handles persistence on its own, and can handle accepting an arbitrary number of connections and writing the data out to a file?