← Back
Milan Jovanovic May 6, 2025 13m

I replaced my Redis cache with Postgres... Here's what happened

Summary

The transcript explores using PostgreSQL as a sophisticated caching service, demonstrating how to leverage SQL and PostgreSQL's unique features like unlogged tables for efficient key-value storage and data management. Key technical concepts include using JSONB for flexible data storage, implementing cache invalidation and eviction strategies, and utilizing unlogged tables to improve write performance with minimal data persistence concerns. The practical takeaway is that developers can create a robust caching solution directly within PostgreSQL without requiring additional caching infrastructure, offering a simple yet powerful approach to temporary data storage and retrieval.

View original episode ↗