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

  • Home
  • SEARCH
  • 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 640449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:57:14+00:00 2026-05-13T20:57:14+00:00

I am trying to figure out the difference between Memcached and JPA, this is

  • 0

I am trying to figure out the difference between Memcached and JPA, this is what I infer from the information I have

  1. Memcached: Cache data and objects in memory, like an on the fly database to quickly access the data. This layer is just above the actual db (say my sql). It has its own columns and rows, where can you keep some temporary data (hot data). A small database, in RAM.

  2. JPA: manage relational data (data which should go in database), developed to make life easy, i.e. we don’t have to go into hibernate and stuff. (I am a lil confused about JPA in layman’s term 😐 )

So, from where I see”:

  1. Both give feature to save relational data in the memory. – WRONG
  2. Used to make data access quick.- WRONG
  3. Both are same (which I am sure are not)- WRONG

Now, some one told me that they used Memcahed and JPA in their system (they deal with huge datasets) So, how does that make sense?

ADDED Question: After reading the answers, if I am making a system which deals with huge datasets, I will go with memcached, but I still don’t understand, why should I go for JPA if: 1. I need to deal with huge data sets, 2. Make system scalable.

  • 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-13T20:57:15+00:00Added an answer on May 13, 2026 at 8:57 pm

    JPA is an ORM (object-relational mapper) to map an object model to a relational database model.

    Memcache is an in-memory cache that is little more than a key-value pair map.

    They’re really for different applications. JPA is an alternative to using SQL. It has caching elements but the primary data source is a database so is for presistent data. Memcache data lives in memory and isn’t persistent so is for more transient data.

    Let me add another possibly controversial point: JPA doesn’t scale.

    JPA (and all ORMs) are a convenience that can speed up development by projecting an object model onto a relational database but it’s not as fast as native SQL. Often you’ll end up figuring ou tthe right combination of settings that generates performant SQL. As Joel says, all abstractions are leaky. JPA is no exception.

    Let me stress that you can go reasonably far with JPA but at some point you will need to go to SQL.

    Memcache solves a different problem and shouldn’t really be compared with JPA. Memcache scales extremely well however as long as you can partition your data, in which case you can have as many servers as you need and the bottleneck becomes network bandwidth, memory and CPU.

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

Sidebar

Related Questions

I am trying to figure out the difference between High and HighQualityBicubic InterpolationMode in
I'm trying to figure out the difference between opening a file like: fstream *fileName*(FILE.dat,ios::binary);
I'm trying to figure out the difference between Where(Expression) and Single(Expression). Is the Expression
I am trying to figure out the difference between $a=&$b and $a=$b . I
Initially I was trying to figure out what the difference is between Response.Close and
I'm trying to figure out some answers to some questions and some difference between
I'm trying to figure out the difference between Groovy: def name = stephanie Java:
I'm trying to figure out the difference between ASP.NET and ASP.NET MVC. Mode-View-Controller called
I am trying to figure out the difference between Add Variable and the Add
In trying to figure out this problem (which is still unsolved and I still

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.