Re:Redis as the primary data store
by macspoofing on Monday April 08, 2013 @08:59PM
(#5515793)
What's the edge case with you guys? It is cool to use Redis and come up with exotic architectures for common use cases (is there anything more common than forum threads and comments?). However, there will come a point where it just won't make sense to pay 10x more (in hardware and maintenance) than you need to, to store old, rarely read posts.
Looks like they provide a real time commenting system for sites. With any success that is going to be one heavily hit API.
Re:Redis as the primary data store
by macspoofing on Wednesday April 10, 2013 @03:27PM
(#5527475)
I guess I just don't see the benefit of a pure Redis approach, compared to the traditional approach of using a proper (replicated or otherwise) disk-based datastore, with caching (Redis or otherwise), especially for a forum/comment framework. It seems needlessly complicated and expensive.
As far as putting a great deal of code into Lua scripts, we'll be putting together a few blog posts explaining how we make this manageable. We were able to double our API throughput by shifting this direction so for us this is worth the difficulty we faced in finding ways to modularize and reuse code in Redis Lua scripts.