News for hackers. Stuff that matters.
Re:Redis as the primary data store by macspoofing on Monday April 08, 2013 @02:30PM (#5513552)
Total overkill, especially given that replicated RAM storage is quite pricey when compared to traditional alternatives. Ideally, you just use Redis to store (cough cache cough) latest forum threads/comments and have everything else on disk (maybe in a RDBMS?). You get performance and price.

EDIT:

>Another of those tricks has to do with the fact that nearly half of our code is also written in LUA running directly on Redis.

Urgh. Ugly.

Re:Redis as the primary data store by courtneycouch0 on Monday April 08, 2013 @03:59PM (#5514121)
Agreed that it's overkill for most use cases (in fact I mention that it's not ideal for most people and we're likely an edge case).

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.

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.
Re:Redis as the primary data store by ukandy on Tuesday April 09, 2013 @11:38AM (#5518846)
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.
Re:Redis as the primary data store by dscrd on Tuesday April 09, 2013 @01:25AM (#5516581)
Wait, does that mean that 50% of their code has been implemented twice? Why would they need to do that? Why not just keep the Lua version?