redis-architect

Identify Redis architecture patterns for caching, locking, and messaging.

Updated Jul 13, 2023
One-click install
npx skills add https://github.com/changgenglu/changgenglu-blog --skill redis-architect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redis-architect
Source: https://github.com/changgenglu/changgenglu-blog/tree/main/prompt_engineering/gemini/skills/redis-architect
Command: npx skills add https://github.com/changgenglu/changgenglu-blog --skill redis-architect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides structured guidance for designing Redis-based architectures to achieve high performance, scalability, and reliability across caching, locking, and messaging.

Core Features & Use Cases

  • Data structure guidance for String, Hash, List, Set, Sorted Set, and Stream with recommended usage scenarios.
  • Caching patterns such as Cache Aside and Write Through with concrete PHP/Laravel examples.
  • Distributed locking techniques including safe acquire/release and Lua-based atomicity.
  • Pub/Sub messaging for real-time notifications and event distribution with guidance on limitations.
  • High availability architectures using Redis Sentinel and Redis Cluster with configuration basics.
  • Laravel integration guidance for queues, sessions, and rate limiting.
  • Performance tuning and monitoring tips for memory, latency, and throughput.

Quick Start

Draft a Redis architecture for your service and implement a basic cache-aside flow to validate the design.

Frequently Asked Questions about redis-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a Redis architecture for high availability and low latency in distributed systems?

Implement a Redis architecture using Redis Sentinel or Redis Cluster to achieve high availability and low latency across distributed services. This ensures reliable data access by combining appropriate data structures, caching strategies, and distributed locks.

What is the best way to implement distributed locks in Redis safely?

Implement distributed locks in Redis safely by using Lua-based atomicity for secure acquire and release operations. This technique ensures reliable distributed locking across services, preventing race conditions in high-availability environments.

How do I apply Redis caching patterns like Cache Aside in a Laravel application?

Apply Redis caching patterns like Cache Aside in Laravel using concrete PHP examples to manage data access flows. This strategy loads data into the cache on demand, ensuring low latency and reliable performance across your application's services.

When should I use Redis Pub/Sub for real-time messaging and what are its limitations?

Use Redis Pub/Sub for real-time notifications and event distribution across services. Be aware of its limitations regarding message persistence, making it less suitable for distributed messaging scenarios where guaranteed delivery is explicitly required.

Does this Redis architecture guidance cover performance tuning and monitoring?

Yes, this Redis architecture guidance covers performance tuning and monitoring tips for memory, latency, and throughput. It helps optimize your caching, locking, and messaging structures to maintain high performance and scalability across distributed systems.