distributed-systems

Design distributed systems with patterns for scheduling, locks, transactions, and caching.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/BNTang/Sa-Token-Demo --skill distributed-systems-bntang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: distributed-systems
Source: https://github.com/BNTang/Sa-Token-Demo/tree/main/.claude/skills/distributed-systems
Command: npx skills add https://github.com/BNTang/Sa-Token-Demo --skill distributed-systems-bntang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a comprehensive guide to designing robust, scalable distributed systems, covering scheduling, distributed locks, transactions, caching, and service governance with clear patterns and actionable guidance.

Core Features & Use Cases

  • Structured guidance on selecting the right distributed-system patterns for common scenarios, including code samples and decision trees.
  • Reference content covering Redis locks, database constraints, ZooKeeper, XXL-Job/Elastic Job, and related tooling for real-world deployments.
  • Use case guidance on idempotency, fault tolerance, and governance in microservices architectures.

Quick Start

Read the collected references and templates to begin architecting reliable distributed systems.

Frequently Asked Questions about distributed-systems

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

FAQPage Schema
How do I implement distributed locks using Redis and ZooKeeper?

Implement distributed locks using Redis and ZooKeeper by referencing structured patterns, code samples, and constraint guidelines to ensure fault tolerance and prevent race conditions in clustered environments.

What are the best practices for handling distributed transactions in microservices?

Best practices for distributed transactions in microservices include applying structured patterns, decision trees, and pitfalls guidance to maintain data consistency, idempotency, and reliability across services.

How do I design a caching strategy for a scalable distributed system?

Design a caching strategy for a scalable distributed system using provided patterns, code examples, and reference content to optimize scheduling, service governance, and fault tolerance.

When should I use XXL-Job or Elastic Job for distributed scheduling?

Use XXL-Job or Elastic Job for distributed scheduling when your architecture requires coordinated task execution, referencing real-world deployment guidance and tooling comparisons to fit your specific scale.

What patterns help ensure idempotency and fault tolerance in distributed systems?

Patterns for idempotency and fault tolerance in distributed systems provide structured guidance, code samples, and decision trees to handle service failures and prevent duplicate processing safely.

How do I apply service governance patterns in a microservices architecture?

Apply service governance patterns in a microservices architecture using the reference content, practical templates, and pitfalls guidance to manage dependencies, transactions, and locks effectively.