[nodejs] Re: Game hiscores: flat files or database?

2012-10-13 Thread Felix E. Klee
I am now using Redis 2.6 with LUA scripting, so far with great joy! The hiscores I store in sorted sets, with floating point scores: * Integer part: game score (between 0 and 99) * Fractional part: timestamp (46 bits) -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://githu

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Dan Milon
Then you should read again about Mongo. danmilon. On Mon, Oct 1, 2012 at 3:56 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira > wrote: > > http://redis.io/topics/persistence > > Too complicated and/or not reliable enough. > > At *any* point in time, I want to have the

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Brian Kardell
Brian Kardell :: @bkardell :: hitchjs.com On Oct 1, 2012 10:04 AM, "Felix E. Klee" wrote: > > On Mon, Oct 1, 2012 at 3:41 PM, Brian Kardell > wrote: > > If the only reason you would even consider a db over a file is a very, > > very obscure case then why not just set a semaphor and retry after a

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:41 PM, Brian Kardell wrote: > If the only reason you would even consider a db over a file is a very, > very obscure case then why not just set a semaphor and retry after a > second or two if it is still open? True. However, that only solves the concurrency issue when only

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Brian Kardell
Brian Kardell :: @bkardell :: hitchjs.com On Oct 1, 2012 9:29 AM, "Felix E. Klee" wrote: > > On Mon, Oct 1, 2012 at 3:09 PM, Arnout Kazemier > wrote: > > Then why ask the question if you already made your mind? > > I'm far from having made up my mind. I just wonder why people recommend > Redis wh

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:00 PM, Pedro Teixeira wrote: > Did you read the append-only:true AOF part of the link I sent you? Yes. I also now read that from time to time Redis rewrites the log so that - I assume - entries that have been deleted will not appear anymore. Sounds good! However, it is r

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 3:09 PM, Arnout Kazemier wrote: > Then why ask the question if you already made your mind? I'm far from having made up my mind. I just wonder why people recommend Redis when performance is not an issue here. After, all solving a puzzle may take some minutes, and only once i

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Arnout Kazemier
Then why ask the question if you already made your mind? You clearly don't want to use anything else then mongodb because you seem to know better and the only thing that redis can do is crash anyways, mongo on the other hand is web scale and build to solve all the issues in the universe that peop

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Pedro Teixeira
Did you read the append-only:true AOF part of the link I sent you? -- Pedro On Monday, October 1, 2012 at 1:56 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira > mailto:pedro.teixe...@gmail.com)> wrote: > > http://redis.io/topics/persistence > > > Too complicated and

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 1:50 PM, Pedro Teixeira wrote: > http://redis.io/topics/persistence Too complicated and/or not reliable enough. At *any* point in time, I want to have the database mirrored to disk, in its entirety. Mongo seems perfect. I wonder why people recommend Redis. -- Job Board:

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Pedro Teixeira
http://redis.io/topics/persistence -- Pedro On Monday, October 1, 2012 at 12:48 PM, Felix E. Klee wrote: > On Mon, Oct 1, 2012 at 12:55 PM, greelgorke (mailto:greelgo...@gmail.com)> > wrote: > > b) redis: http://redis.io/topics/introduction > > > Thanks for the suggestion. However, if using

Re: [nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread Felix E. Klee
On Mon, Oct 1, 2012 at 12:55 PM, greelgorke wrote: > b) redis: http://redis.io/topics/introduction Thanks for the suggestion. However, if using a database, then I prefer Mongo. Performance is not an issue. Persistence, on the other hand, is a big issue: If someone spent hours to crack the hiscore

[nodejs] Re: Game hiscores: flat files or database?

2012-10-01 Thread greelgorke
b) redis: http://redis.io/topics/introduction its less puzzling than files, has replication and pubsub, and atomic operations Am Montag, 1. Oktober 2012 12:10:50 UTC+2 schrieb Felix E. Klee: > > Somewhat as a training, I am developing a puzzle game. A first version > was entered into the js13kGam