[UPDATED]
Hi,
I am trying to figure out the difference between Memcached and JPA, this is what I infer from the information I have
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.
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":
- Both give feature to save relational data in the memory. - WRONG
- Used to make data access quick.- WRONG
- 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.
NEED ENLIGHTENMENT FROM YOU GUYS