Memcached VS Varnish

Compare Memcached vs Varnish and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
Memcached Varnish
55 17
13,156 21
0.9% -
8.5 6.8
6 days ago 23 days ago
C CSS
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Memcached

Posts with mentions or reviews of Memcached. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Redis Re-Implemented with SQLite
    15 projects | news.ycombinator.com | 14 Apr 2024
  • How to choose the right type of database
    15 projects | dev.to | 28 Feb 2024
    Memcached: A simple, open-source, distributed memory object caching system primarily used for caching strings. Best suited for lightweight, non-persistent caching needs.
  • Sieve is simpler than LRU
    4 projects | news.ycombinator.com | 3 Jan 2024
    Oh, thank you! I didn't realize that LRU Maintainer Thread was more than an expiration reaper. When it was first being introduced that was its first responsibility as lazy expiration removal by size eviction meant dead entries wasted capacity. It was all work in progress when I had read about it [1] and talked to dormando, so it got fuzzy. The compat code [2, 3] might have also thrown me off if I only looked at the setting and not the usage. Its a neat variant to all of these ideas.

    [1] https://github.com/memcached/memcached/pull/97

  • A Developer's Journal: Simplifying the Twelve-Factor App
    9 projects | dev.to | 3 Dec 2023
    stores session state in a session store like Memcached or Redis.
  • Django Caching 101: Understanding the Basics and Beyond
    3 projects | dev.to | 23 Jul 2023
    Django supports using Memcached as a cache backend. Memcached is a high-performance, distributed memory caching system that can be used to store cached data across multiple servers.
  • Node.js server-side authentication: Tokens vs. JWT
    2 projects | dev.to | 12 Jul 2023
    In server-side authentication, the session state is stored on the server-side, which can be scaled horizontally across multiple servers using tools like Redis or Memcached.
  • Scaling moderate sized websites
    3 projects | dev.to | 31 Jan 2023
    Caching - while it's not possible to cache everything, there's always a large percentage of your website / app that can be cached for an hour or ten minutes or 1 day etc... - all depends on the type of content but the longer you can cache for without negatively effecting content quality - the better. A good caching server example would be redis : https://redis.io/ or https://memcached.org/
  • Why do people curse JS so much, but also say it's better than Python
    8 projects | /r/ProgrammerHumor | 21 Jan 2023
    If you really care about optimising this, you need, as other traders pointed out, a cache. Caches are a way of ensuring that the data you query stays in memory on a separate machine so you don't have the delay to disk & to commit. Things like memcached are created for this exact purpose. If you care about optimisation, look into it and other options. This is not a simple problem. Distributed systems like these are a whole area of work and research, so it won't be as simple as just swapping a DB, but if you care about performance, this is the path you have to go down eventually.
  • Web resource caching: Server-side
    4 projects | dev.to | 7 Dec 2022
    A couple of dedicated server-side resource caching solutions have emerged over the years: Memcached, Varnish, Squid, etc. Other solutions are less focused on web resource caching and more generic, e.g., Redis or Hazelcast.
  • jwz: Mastodon stampede
    2 projects | /r/Mastodon | 28 Nov 2022
    MEMCACHED

Varnish

Posts with mentions or reviews of Varnish. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-08.

What are some alternatives?

When comparing Memcached and Varnish you can also consider the following projects:

envoy - Cloud-native high-performance edge/middle/service proxy

node-cache - A simple in-memory cache for nodejs

dragonfly - A modern replacement for Redis and Memcached

Squid - Squid Web Proxy Cache

node-cache - a node internal (in-memory) caching module

KeyDB - A Multithreaded Fork of Redis

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

bucket4j - Java rate limiting library based on token-bucket algorithm.

SSDB - SSDB - A fast NoSQL database, an alternative to Redis

HAProxy - HAProxy documentation

node-redis - A high-performance Node.js Redis client. [Moved to: https://github.com/redis/node-redis]