Skip to content

Go project implementing lazy loading using redis as caching layer and postgres as db layer

Notifications You must be signed in to change notification settings

Sean-Miningah/cache-aside-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache Aside Implementation with Redis and PostgreSQL

This GoLang project demonstrates the implementation of the Cache Aside pattern using Redis as the caching layer and PostgreSQL as the backend database.

Overview

Cache Aside, also known as Lazy Loading or Lazy Population, is a caching pattern that allows an application to load data from the cache on demand, updating the cache with fresh data from the database when necessary. In this project, we utilize Redis as an in-memory cache to improve the performance of data retrieval operations.

Features

  • Cache Aside Pattern: Efficiently manages data caching by retrieving from Redis cache when available, otherwise fetching from PostgreSQL database and updating the cache.
  • Redis Integration: Utilizes Redis as a caching layer to store frequently accessed data, reducing the load on the database server.
  • PostgreSQL Database: Utilizes PostgreSQL for persistent data storage, ensuring data integrity and durability.

About

Go project implementing lazy loading using redis as caching layer and postgres as db layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published