Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created May 14, 2010 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/401537 to your computer and use it in GitHub Desktop.
Save PharkMillups/401537 to your computer and use it in GitHub Desktop.
bradfordw # Anyone lurking this evening? I've got a use-case question moving an app from mongo -> riak/bitcask
benblack # then i encourage you to ask it :)
bradfordw # Well alright!
So, this application is collecting many, many logs... And from these logs are counters on individuals
It's not spying, it's video-game based. So, for example, frag counting. Using mongo to count things like frags, etc... is trivial. Obviously, at least to my knowledge, there isn't a similar mechanism in riak
Which is fine...
benblack # yes, tightly synchronized things often are
bradfordw # Should I keep mongo JUST for the counters and then as events end push them to riak and clear out the "on disk" (*cough* bullshit) versions from mongo?
Or should I go crazy, roll a simple counter service via a small clojure app and just publish that to riak?
Saving grace here, I have time to do it...
benblack # you could go that route. i really like using redis for counters
bradfordw # Yea?
I hadn't thought much about redis...mostly for lack of exposure. Can one force it to disk now or is it still memory-only?
bradfordw # ...as I tear though the redis docs. I'll answer that one myself.
bradfordw # @benblack thanks for the suggestion, I'm going to fiddle with the redis erlang client. I appreciate the help!
benblack # np
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment