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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:40:18+00:00 2026-06-13T11:40:18+00:00

I know this is a very vague question, but I’m looking for a very

  • 0

I know this is a very vague question, but I’m looking for a very abstract answer. Since I started using GAE a few months ago, I’ve always shrugged off memcache as not useful and an uncessessary hassle, that it’s really not that important. But it seems that memcache is praised as a highly beneficial feature, that Google even says “High performance scalable web applications often use a distributed in-memory data cache in front of or in place of robust persistent storage for some tasks.”, and so I thought that there must be something worth looking into about this.

I just don’t get it. How is it good for performance? First you have to check if something is in memcache, and if not, query. I always thought it would just be quicker to not have to deal with that, and just query anyway, but it seems this may be a naive approach? How much of a difference does this make?

I guess what I never understood is where memcache is useful. I can see how it can be useful in say the Stackoverflow home page, where all users pretty much see the same thing, so it would be useful, in fact silly not to use memcache in a situation like that. But say a social network like Facebook. Every user sees something different. No two people see the same data and content, and things change so fast that memcache would probably constantly need to be updated. What role can memcache play in such a scenario?

Also, in a private website like a social network, how much can memcache really fit if every user has to store different information in memcache? I know GAE doesn’t speak of the size of its memcache, so would it be safe to store hundreds of thousands of records?

  • 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-06-13T11:40:19+00:00Added an answer on June 13, 2026 at 11:40 am

    You use memcache for things you’re likely to need frequently. Checking to see if something is in memcache is fast. Getting it from memcache is fast. If you can save yourself having to do a query, you save a ton of time.

    For instance, consider the following two scenarios:

    • Two people request your homepage. Both requests do a query as part of the page load.
    • Two people request your homepage. Both check the cache; one does a query and stores it, the other gets the cached results.

    Ballpark time to get something from memcache (or store it) is on the order of ~2-3ms. Ballpark time to get something from the DB is 100ms.

    So for the first scenario, you have 100ms x2 = 200ms total.

    In the second scenario, you have 3ms (failed lookup) + 100ms (query) + 3ms (store) + 3ms (successful lookup) = 109ms total.

    You’ve saved almost 50% overall.

    Now consider that maybe 10 people request your homepage. Each additional person in the first scenario would be another 100ms. Each person in the second scenario is only 3ms.


    Also note that you don’t have to store an entire page at a time in memcache. You can store parts of pages as well. Sure, not all users have all the same data, but there are certainly some things that are shared between them.

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

Sidebar

Related Questions

guys I know this question is very basic but I've met in few publications
I know this is a very general and vague question but I am curious
I know this is very similar to a few other questions, but I can't
I know this is a very broadly scoped question, but what do I need
Ok, I know this is a very basic question, but my head is swimming
I know this is very common question but I am really stuck in this
I'm sorry, I know this is a very simple question but I've search here
I realize this may be a very simple question but I need to know
I know this is a very basic question, but forgive me if I did
This is a very vague question, but I am not sure where to start,

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.