/plushcap/analysis/redis/redis-how-to-use-redis-in-infrastructure-microservices

How to Use Redis in Infrastructure Microservices

What's this blog post about?

The text discusses using Redis as a message queue, demonstrating its many use cases beyond caching. It highlights the importance of distributed systems and their implications on consistency, availability, and partition tolerance according to the CAP theorem. Event sourcing is also mentioned as a technique that prioritizes availability over consistency. The "Hello World" example of microservice architecture, OrderShop, is used to illustrate Redis' role in event stores and message queues. It explains how communication in distributed systems can be brokered or brokerless, with examples using Redis Lists and Streams. The text also touches upon the use of gRPC for network communication, CQRS pattern, SAGA pattern, and a simple UI to watch events and browse state. Overall, it emphasizes Redis' versatility and flexibility in domain and infrastructure services beyond caching.

Company
Redis

Date published
Nov. 24, 2020

Author(s)
Martin Forstner

Word count
1113

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.