1

I am building a high volume Twitter streaming application. I want to store the raw tweets in a Redis store since the spikes can be very large (10s of thousands per second), then run a separate process to grab tweets from Redis and parse and store in various MongoDB collections.

I'm familiar with MongoMapper, is there something similar for a Rails app with Redis and can you use both? I'd essentially have a simple model object for the raw tweets which should connect to Redis and other models for the various MangoDB collections via MongoMapper.

1 Answer 1

1

You can serialize tweets to a (JSON) string and just store them like this in Redis. Then later read, parse and save to MongoDB.

Infinite flexibility and no need for redis mapper libraries (which don't exist, AFAIK).

In my app there's a similar functionality. I use the wonderful Resque to store "tweets" in redis to be processed later.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.