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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:52:03+00:00 2026-05-26T05:52:03+00:00

The MemCached documentation mentions data is distributed across nodes. That’s their definition of distributed

  • 0

The MemCached documentation mentions data is distributed across nodes. That’s their definition of distributed cached. If a node A needs data that is on node B, data is transferred from B to A. If A crashes, all data stored on A is not available to B anymore.

However, EhCache has a different definition of distributed caching. Basically, it is more like shared-memory than distributed cache. If node A modifies some data, node B will see that modification. If A crashes, any data A stored in the shared-memory remains available to node B.

This leads me to two questions:

  1. If I have 3 nodes A, B, C each having 1GB of memory, it seems like MemCached will add up memory and make it look like a total of 3 GB of memory for the nodes. However, it seems like EhCache does not add the 3 GB, but rather will allow at most 1GB of shared memory between each nodes. Is this correct?

  2. If answer to 1. is yes, then is it correct to conclude that EhCache and MemCached are actually complementary rather than in competition?

  • 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-26T05:52:04+00:00Added an answer on May 26, 2026 at 5:52 am

    I’ve some experience with both.

    I’d say ‘yes’ to both your questions.

    I’ve been using ehcache together with Hibernate. It caches data found in a central database in memory on several server nodes in a cluster. Reason is of course to have less database accesses. If a cached value is written to by one node, then this value should be invalidated on the other nodes to force them to re-read the value from the database, and re-cache it.

    Memcached I’ve used as datasource. It’s a simple key=value database. On every service node you define a list of memcached nodes that it can use. Then it will write to some node (by round robin I guess). The key has the information about which memcached node the value is stored on.

    So in my experience, memcached is a, often distributed, database (not the relational kind, but still a database), while ehcache is more a traditional cache.

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

Sidebar

Related Questions

I'm using the Memcached::set() and Memcached::get() methods. The documentation states that if an error
On the memcached website it says that memcached is a distributed memory cache. It
I have several items on memcached that should expire 24h after the creation time.
I wanted to use memcached for my C++ application. To do that I need
I have an old memcached client implementation that is based of the danga client,
In the django documentation it says this: ... One excellent feature of Memcached is
I'm trying to to setup Memcached 2nd level caching. I've followed what documentation I
Install Memcached Install python-memcache library Start Memcache service Is that right? What else is
Google App Engine's documentation states that memcache calls will count towards a quota. Yet,
I believe that you can't force a running Memcached instance to de-allocate memory, short

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.