Do you really need Redis? How to get away with just PostgreSQL

# · 🔥 838 · 💬 471 · 2 years ago · spin.atomicobject.com · hyzyla · 📷
PostgreSQL for data storage Redis for coordinating background job queues. Redis is fantastic, but what if I told you that its most common use cases for this stack could actually be achieved using only PostgreSQL? PostgreSQL can achieve this as well using its advisory locks. Advisory locks allow you to leverage the same locking engine PostgreSQL uses internally for your own application-defined purposes. If you happen to be using Rails and ActionCable, using PostgreSQL is even supported out of the box. Taking Full Advantage of PostgreSQL. Redis fundamentally fills a different niche than PostgreSQL and excels at things PostgreSQL doesn't aspire to. PostgreSQL has a lot more capabilities than you may expect when you approach it from the perspective of just another SQL database or some mysterious entity that lives behind your ORM. There's a good chance that the things you're using Redis for may actually be good tasks for PostgreSQL as well.
Do you really need Redis? How to get away with just PostgreSQL



Send Feedback | WebAssembly Version (beta)