Ask HN: need advice on how to write lots of data fast
I know that writing to log files is hard drive intensive. I also know that the preferred method is to write to a database, which I know how to do and can easily setup. But I'd like to stretch my boundaries a bit here and learn something new.
I had an idea the other to use nginx as my webserver to handle the requests. Very fast & lightweight. It would dump any new data into a memcached instance, with a cron running every couple minutes to suck the memcache stuff either into a db or into a flat file. Even I can think of several reasons why this might not be optimal, but I thought it would a cool way to learn about how to use memcache and get experience with building light-weight systems.
So does anyone have any thoughts on anything I've said, and maybe can make some recommendations?
I ran into a related project called memcachedb, which purports to use the memcache api calls but writes to a berkelydb backend. I haven't looked into it much, but it does seem interesting.