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 1076845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:29:25+00:00 2026-05-16T21:29:25+00:00

I am thinking about using a noSQL (mongoDB) paired with memcached to store sessions

  • 0

I am thinking about using a noSQL (mongoDB) paired with memcached to store sessions with in my webapp. The idea is that upon each page load, the user data is compared to the data in the memcache and if something has changed, the data would be written to both memcached and mySQL. This way the reads would be greatly reduced and memcached utilized to do what it does best.

However I am a bit concerned about using a non-ACID database for session storage especially with the memcached layer. Let’s say something goes wrong while updating the session to the DB and our users got instant headache wondering why their product that they put in the cart doesn’t show up…

What’s an appropriate approach to this? Should we go for a mySQL session storage or is it fine to keep a non-acid supportive database for sessions?

Thanks!

  • 1 1 Answer
  • 3 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-16T21:29:25+00:00Added an answer on May 16, 2026 at 9:29 pm

    If you don’t want to lose your data, stick with ACID tested databases.

    What’s the payoff you’re looking for?

    If you want a secure system, you can’t trust anything from the user, save for perhaps selected integers, so letting them store the information is typically a really bad idea.

    I don’t see the payoff for storing sessions outside of your MySQL database. You can cron cleanup on the tables if that’s your concern, but why bother? Some users will shop on a site and then get distracted for a while. They would then come back a day or two later.

    If you use cookies or something really temporary to store their session info, there is a really good chance their shopping time was wasted. Users really value their time… so if you stored their session info in the database, you can write something sexy to manage that data.

    Plus, the nice side effect of this is that you’ll generate a lot of residual information about what people like on your website that wouldn’t perhaps be available to you later on. Like you could even consider some of it to be like a poll or something where the items people are adding to their cart could impact how you manage your business, order inventory or focus your marketing.

    If you go with something really temporary then you lose out on getting residual benefits.

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

Sidebar

Related Questions

I was thinking about using memcached to store sessions instead of mySQL, which seemed
I'm thinking about using Redis as a store for some highly transient data (we're
I've been thinking about using SQLite for my next project, but I'm concerned that
I'm thinking about using an accordion in a please enable Javascript page, but I
I'm thinking about using the Open Session In View (OSIV) filter or interceptor that
I am at the point now that I am really thinking about using Maven
I'm thinking about using the java application object to implement a simple cache, to
I am thinking about using Gears in a project, but I have doubts about
I'm thinking about using a ViewFlipper for an Wizard like Activity. But I see
Since Intellij does not yet support the Play-Scala-Template-Engine I was thinking about using plain

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.