Memcached VS PostgreSQL

Compare Memcached vs PostgreSQL and see what are their differences.

Memcached

memcached development tree (by memcached)

PostgreSQL

Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Submitting_a_Patch (by postgres)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Memcached PostgreSQL
54 403
13,113 14,445
0.7% 3.1%
8.5 9.9
1 day ago 4 days ago
C C
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
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-02-28.
  • 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
  • How to Scale Ruby on Rails Applications
    4 projects | dev.to | 16 Nov 2022
    Now that we know what to cache and the techniques Rails provides to store things in the cache, the next logical question is — where do we cache this data? Rails comes with several in-built cache store adapters. The most popular cache stores for production use cases are Redis and Memcached. There are a couple of other options as well — the file store and memory store. A full discussion of these stores can be found in the post Rails' built-in cache stores: an overview.

PostgreSQL

Posts with mentions or reviews of PostgreSQL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-19.
  • From zero to hero: using SQL databases in Node.js made easy
    3 projects | dev.to | 19 Mar 2024
    Node.js, MySQL and PostgreSQL servers installed on your machine
  • I Deployed My Own Cute Lil’ Private Internet (a.k.a. VPC)
    8 projects | dev.to | 18 Mar 2024
    Each app’s front end is built with Qwik and uses Tailwind for styling. The server-side is powered by Qwik City (Qwik’s official meta-framework) and runs on Node.js hosted on a shared Linode VPS. The apps also use PM2 for process management and Caddy as a reverse proxy and SSL provisioner. The data is stored in a PostgreSQL database that also runs on a shared Linode VPS. The apps interact with the database using Drizzle, an Object-Relational Mapper (ORM) for JavaScript. The entire infrastructure for both apps is managed with Terraform using the Terraform Linode provider, which was new to me, but made provisioning and destroying infrastructure really fast and easy (once I learned how it all worked).
  • How to dump and restore a Postgres DB with new table ownership
    2 projects | dev.to | 14 Mar 2024
    I've used MySQL for years. But recently, I found myself working PostgreSQL and simple things like dumping and restoring a database are different enough that I decided to document the process. It's straightforward enough once I knew how.
  • Test Driving a Rails API - Part One
    11 projects | dev.to | 11 Mar 2024
    A running Rails application needs a database to connect to. You may already have your database of choice installed, but if not, I recommend PostgreSQL, or Postgres for short. On a Mac, probably the easiest way to install it is with Posrgres.app. Another option, the one I prefer, is to use Homebrew. With Homebrew installed, this command will install PostgreSQL version 16 along with libpq:
  • Um júnior e um teste técnico: The battle.
    5 projects | dev.to | 3 Mar 2024
    PostgreSQL
  • How to choose the right type of database
    15 projects | dev.to | 28 Feb 2024
    PostgreSQL: Offers a robust feature set and strong compliance with SQL standards, making it suitable for a wide range of applications, from simple to complex, particularly where data integrity and extensibility are key.
  • NoSQL Postgres: Add MongoDB compatibility to your Supabase projects with FerretDB
    6 projects | dev.to | 23 Feb 2024
    FerretDB is an open source document database that adds MongoDB compatibility to other database backends, such as Postgres and SQLite. By using FerretDB, developers can access familiar MongoDB features and tools using the same syntax and commands for many of their use cases.
  • Preventing SQL injection attacks in Node.js
    6 projects | dev.to | 22 Feb 2024
    To better understand how SQL injection works, let's quickly create a vulnerable app using Node.js, Express, and a PostgreSQL database. The application takes user input from a form, constructs a SQL query, and executes it against the database to fetch some data.
  • Full Stack Chat App with Socket.io
    3 projects | dev.to | 16 Feb 2024
    We'll use PostgreSQL, and first of all, you need to install PostgreSQL if you haven't installed it yet. https://www.postgresql.org/
  • Rust GraphQL APIs for NodeJS Developers: Introduction
    7 projects | dev.to | 8 Feb 2024
    In my usual NodeJS tech stack, which includes GraphQL, NestJS, SQL (predominantly PostgreSQL with MikroORM), I encountered these limitations. To overcome them, I've developed a new stack utilizing Rust, which still offers some ease of development:

What are some alternatives?

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

psycopg2 - PostgreSQL database adapter for the Python programming language

Varnish - The project homepage

ClickHouse - ClickHouse® is a free analytics DBMS for big data

phpMyAdmin - A web interface for MySQL and MariaDB

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

Firebird - FB/Java plugin for Firebird

Adminer - Database management in a single PHP file

SQLAlchemy - The Database Toolkit for Python

MariaDB - MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.

debezium - Change data capture for a variety of databases. Please log issues at https://issues.redhat.com/browse/DBZ.

MySQL - MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

Percona Server - Percona Server