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
  • 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-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

My company are thinking about using Mono for an upcoming product, so we were
I am thinking about using Microsoft Unity for my Dependency Injection tool in our
We're thinking about using the rufus-scheduler gem on a Ruby on Rails project to
I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to
I've been thinking about using extension methods as a replacement for an abstract base
My application has a command line interface, and I'm thinking about using the GNU
This recent question about sorting randomly using C# got me thinking about the way
Thinking about a Windows-hosted build process that will periodically drop files to disk to
Thinking about getting into .net technology project management I've had plenty of experience with
Thinking about my other problem , i decided I can't even create a regular

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.