Hi all,
My main project use redis for quick storage log , i just provide 1 api to put log to redis list, hundred call per second, millions call per day, log message of same day store in same list, after one day, i have pop all element of last day to storage log in other persisten database. Because a lot of operation like pop, del, my Redis fragmentation ratio > 4.0, very high. I need log and release resource very fast to reuse but have limited ressource.
And i just think, not tested, some way to issue my problem is:
2 - Use memcached to storage list of logs, use key name like: a1,a2,a3, ...an and 2 key storage biggest and smallest key, it may replace redis?
3 - Use queue management like RabbitMQ
Really need a good advise, thanks you.