Simply Rely on Postgres for All Your Needs

By Stephan SchmidtLast updated
Simply Rely on Postgres for All Your Needs

We have invited complexity through the door, but it will not leave as easily.

However, there is a concept called Radical Simplicity.

One way to simplify your stack, reduce the moving parts, speed up development, lower risks, and deliver more features in your startup is to "Use Postgres for everything." Postgres can replace many backend technologies — such as Kafka, RabbitMQ, Mongo, and Redis — even for applications with millions of users.

This approach makes every application easier to develop, scale, and operate.

Fewer moving parts mean fewer developers needed for components that don’t provide value or simply replicate existing functionality (like the frontend), allowing more developers to focus on parts (like the backend) that do provide value to customers. Imagine increasing feature output by 50% without higher costs. For developers, this also means a lower cognitive load. You can deeply understand all the moving parts, alleviating the imposter syndrome.

Use PostgreSQL for Everything

  • Use PostgreSQL for caching by employing UNLOGGED tables and using TEXT as a JSON data type instead of Redis.
  • Utilize stored procedures or tools like ChatGPT to automate tasks such as adding and managing data expiry, similar to how Redis functions.
  • Use PostgreSQL as a message queue with SKIP LOCKED instead of Kafka (if a simpler message queue suffices). Alternatively, employ it as a job queue in Go with River.
  • Use PostgreSQL with Timescale for efficient data warehousing.
  • Use PostgreSQL with pg_analytics for real-time OLAP capabilities using Apache Datafusion.
  • Use PostgreSQL's JSONB features to store and search JSON documents effectively, replacing traditional MongoDB setups.
  • Use PostgreSQL as a cron demon with pg_cron for scheduling tasks such as sending emails, and seamlessly add events to a message queue.
  • Use PostgreSQL for geospatial queries, integrating spatial data seamlessly into applications.
  • Use PostgreSQL for full-text search functionality, eliminating the need for additional tools like Elasticsearch.
  • Use PostgreSQL's capability to generate JSON directly within the database, simplifying API data delivery without server-side code.
  • Use PostgreSQL with pgaudit for comprehensive auditing capabilities.
  • Integrate PostgreSQL with a GraphQL adapter to efficiently deliver GraphQL APIs when needed.

In summary, consider PostgreSQL as your versatile solution for various backend tasks, streamlining development, scaling, and operational efficiency across applications.

Keep reading

More posts tagged “Community”.
What are Connection Pools and How Do They Help with PostgreSQL?

When you're building an application that interacts with a database, you’ll often need to establish a connection to the database each time your application wants to retrieve or store data. This can be slow and resource-intensive, especially if your application needs to interact with the database frequently. This is where connection pooling comes in.

Tue, Sep 17, 2024
Stop Using UUIDs in Your Database

How UUIDs can Destroy Database Performance

Thu, Jul 11, 2024
Count(*) vs Count(1) in SQL

If you've written SQL queries, you've likely encountered both COUNT(*) and COUNT(1) to count rows in a table. But what's the difference between these two, and which one is better to use? Let's explore this in detail.

Sun, Aug 4, 2024
Redis Alternatives 2025

Redis is usually chosen as a cache because of its speed and versatility, allowing developers to provide users with a faster and smoother experience. But after its license change, many companies are looking for an alternative. In this post, we will take a look at the most popular options for replacing Redis as a cache.

Fri, Jan 10, 2025
Heroku vs Granite: PostgreSQL pricing and limits in 2026

This article breaks down how Heroku's PostgreSQL pricing and limits compare to Granite in 2026, with enough detail for you to make a real decision in the next hour.

Tue, Mar 31, 2026
Fly vs Railway vs Render: deploy costs compared 2026

For solo technical founders launching an MVP on a tight budget, Railway offers the lowest entry cost and fastest setup, while Granite provides a compelling all-in-one alternative with integrated storage and CDN for a predictable $9/month—making either a better starting point than Fly.io or Render for most early-stage projects.

Fri, Mar 27, 2026
Be first in line for updates
and special pricing
Get early access to new features and exclusive discounts delivered straight to your inbox