Memcached

4.6K
3K
+ 1
465
NCache

18
16
+ 1
0
Add tool

Memcached vs NCache: What are the differences?

What is Memcached? High-performance, distributed memory object caching system. Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

What is NCache? Distributed In-Memory Datastore. It is an extremely fast and scalable distributed cache for .NET. It helps high traffic server applications remove data storage bottlenecks by caching application and linearly scale to handle extreme transaction loads without slowing down.

Memcached can be classified as a tool in the "Databases" category, while NCache is grouped under "In-Memory Databases".

Memcached is an open source tool with 9K GitHub stars and 2.6K GitHub forks. Here's a link to Memcached's open source repository on GitHub.

Decisions about Memcached and NCache
Chose
to add
Couchbase
and to remove
Redis
Memcached
 This was roughly 4 years ago at this point. We had been using an old iteration of memcache on Windows as the data cache per server for while and had for whatever reason opted to store our session data (to which the application is heavily dependent) in App Fabric. App Fabric had come to EOL and we needed to move away from it. As a quick search showed throughput capacity to be higher and overall features of Redis were better we initially implemented it. The number of changes required were minimal and we were able to migrate away to a more resilient system pretty quickly.
 We hit a snag in that the implementation of the Redis session handler at that point only took a single IP so we had to do use keepalived and HAProxy to display the application consistently between master and slave failovers. This caused issues on occasion of dropped connections to the backend service. We upgraded our client and could put both members into our config files and it stopped timing out. We were all happy in this and it was (for it's own part) a significant upgrade. Generally performance was better for all pages. 
 We found however, that our application was serializing all requests and locking on the thread via session lock for a great many things and this caused us and our users considerable headaches on occasion. We found that the implementation of the couchbase session handler gave us the option of ignoring session write locks and not be required to rewrite dozens of pages to handle the no session requirement as the application was working fine without the need to be threadsafe. Though the maximum throughput was not as good compared to Redis the application performance was considerably better as a result of the change. The multi-master write was a big benefit and the cross data center replication was a nice thing to have as that would allow our users to remain logged in even across DataCenter fail-over events (praying that never happened). Overall we used that for session handling and chose to use couchbase (in a 2nd cluster) to handle memcache requests as that gave us greater capacity to handle larger objects more efficiently. 
 We are, all these years later, looking to move into the newer features of couchbase to give us more and better use of this product that really has been the answer to a bunch of the growing pains we experienced. Since the decision performance has not been on wild rides and stability has never been better. So I sing the praises of couchbase to anyone that will listen.
See more
Pros of Memcached
Pros of NCache
    No pros available

    Sign up to add or upvote prosMake informed product decisions

    Cons of Memcached
    Cons of NCache
      No cons available

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is Memcached?

      Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

      What is NCache?

      It is an extremely fast and scalable distributed cache for .NET. It helps high traffic server applications remove data storage bottlenecks by caching application and linearly scale to handle extreme transaction loads without slowing down.
      What companies use Memcached?
      What companies use NCache?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Memcached?
      What tools integrate with NCache?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

      What are some alternatives to Memcached and NCache?
      Redis
      Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
      Ehcache
      Ehcache is an open source, standards-based cache for boosting performance, offloading your database, and simplifying scalability. It's the most widely-used Java-based cache because it's robust, proven, and full-featured. Ehcache scales from in-process, with one or more nodes, all the way to mixed in-process/out-of-process configurations with terabyte-sized caches.
      Varnish
      Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.
      Hazelcast
      With its various distributed data structures, distributed caching capabilities, elastic nature, memcache support, integration with Spring and Hibernate and more importantly with so many happy users, Hazelcast is feature-rich, enterprise-ready and developer-friendly in-memory data grid solution.
      MongoDB
      MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
      See all alternatives
      Interest over time
      How much does Memcached cost?
      How much does NCache cost?
      Pricing unavailable
      News about NCache
      More news