Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6200793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:25:56+00:00 2026-05-24T04:25:56+00:00

We started with Redis, storing active data, logged in users, etc. We’re using some

  • 0

We started with Redis, storing active data, logged in users, etc. We’re using some pubsub too for realtime data passing.

Recently we added Mongo to fit our geo spatial needs, and it seems great for non-active data too.

How should these two work together? It is dumb to use both? Is it dumb to pass chunks of data from mongo to redis when they becomes active?

Our thoughts were that we might store everything in mongo but then pass user data from mongo to redis when a user is active and the data is likely to be accessed. I know Mongo does some cacheing like this on its own, we are new to both of them and just want to know how they should be used together, if at all.

Thanks!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:25:57+00:00Added an answer on May 24, 2026 at 4:25 am

    It is dumb to use both? Is it dumb to pass chunks of data from mongo to redis when they becomes active?

    So I feel like there’s actually a legitimate to test and validate this question. Redis is basically an “in-memory” DB, so how much better can you do by giving that RAM to Mongo?

    Historically, we’ve used the Memcache/MySQL combo to basically “add RAM” to MySQL and limit the amount of writing it needed to do. We did this simply because it was complicated to shard MySQL.

    However, MongoDB provides a sharding mechanism. So you can “add RAM” to a problem (along with “adding disks”) simply by adding more shards.

    Thanks to the way memory-mapped files work, MongoDB tends to keep recently used data in memory. So if you’re pulling recent data into Redis, that data is probably also in memory on the MongoDB side, so it’s not clear that you benefit from having it in two places.

    Is it dumb …

    That’s hard to say without some testing and analysis. MongoDB doesn’t really have the pub/sub mechanism, but it does tend to have fast query times, so it may be appropriate in specific spots.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started using subversion for one of my projects and it would be absolutely
I started a new WPF project in VS2008 and then added some code to
I started playing with the idea of testing a webpage load time using R.
Started with ajax last week. How would I upload an image using it. What
Just started using carrierwave with Rails and things have been going smoothly with one
I started using LINQ to SQL recently. On my DMBL designer, I open the
I started trying to play with Mono, mostly for fun at the moment. I
I started an application in Google App Engine right when it came out, to
I started a Rails project recently and decided to use RESTful controllers. I created
I started programming C# applications when the 1.0 framework was first released. I worked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.