Josh Journal
  • HOME
  • Blog
  • Projects
  • Tags
  • CONTACT
  • LAB





Architecture

Redis Lists vs Pub/Sub: When to Use Each

Dec 30, 2025 8 mins read Redis Golang Messaging Architecture

Overview Redis offers multiple data structures for message passing between services. Two common patterns are Lists (with LPUSH/RPOP operations) and Pub/Sub channels. While both can transport messages, they serve different use cases and have distinct characteristics. This guide explores when to use each pattern, with practical Go examples. Redis Lists: Queue-Based Messaging Redis Lists implement a queue data structure. Messages are pushed onto one end of the list and popped from the other, providing FIFO (first-in-first-out) semantics with persistence.

Read more

Copyright © 2020 Josnelihurt Rodriguez Barajas