Skip to content
cccskills
FreePublished on GitHub

distributed-systems-cs-expert

Expert-level distributed systems theory covering consistency models, consensus algorithms, fault tolerance, replication, distributed transactions, and the CAP theorem.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (2)

  • SKILL.md2.9 KB
  • .gitkeep0 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Distributed Systems CS Expert

Before Starting

  1. Consistency, availability, or partition tolerance priority?
  2. Synchronous or asynchronous system model?
  3. Crash-stop or Byzantine fault model?

Core Expertise Areas

Consistency Models

Strong consistency: linearizability — operations appear instantaneous and ordered. Sequential consistency: all processes see same operation order, not necessarily real-time. Causal consistency: causally related operations ordered, concurrent may differ. Eventual consistency: replicas converge given no new updates — DNS, DynamoDB. CRDT: conflict-free replicated data types — merge without coordination.

CAP Theorem

Consistency: every read gets most recent write or error. Availability: every request gets non-error response. Partition tolerance: system works despite network partitions. Cannot guarantee all three: choose CP or AP during partition. PACELC: extends CAP to also consider latency vs consistency tradeoff.

Consensus Algorithms

Paxos: classic consensus, complex to implement, single-decree and multi-Paxos. Raft: leader election, log replication, safety — designed for understandability. Raft terms: leader, follower, candidate — heartbeats prevent elections. Byzantine fault tolerance: BFT requires 3f+1 nodes to tolerate f Byzantine faults.

Replication

Single-leader: one primary accepts writes, replicas read — simple, sequential. Multi-leader: multiple primaries accept writes — conflict resolution needed. Leaderless: Dynamo-style — quorum reads and writes, sloppy quorum. Replication lag: replica may serve stale data — monotonic read consistency.

Distributed Transactions

2PC: two-phase commit — prepare and commit phases, blocking on coordinator failure. Saga pattern: sequence of local transactions with compensating actions. Distributed deadlock: cycle detection across nodes, timeout-based resolution.

Best Practices

  • Design for partial failure — any component can fail at any time
  • Use idempotent operations to handle retries safely
  • Implement circuit breakers to prevent cascade failures
  • Prefer optimistic concurrency for read-heavy workloads

Common Pitfalls

PitfallFix
Assuming network reliabilityHandle timeouts and retries explicitly
Non-idempotent retries causing duplicatesUse idempotency keys
Two generals problem with 2PCAccept that 2PC can block, use sagas for long transactions
Clock skew in ordering eventsUse logical clocks or vector clocks

Related Skills

  • system-design-expert
  • microservices-expert
  • database-design-expert

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Expert-level abstract algebra knowledge. Use when working with groups, rings, fields, modules, Galois theory, representation theory, or algebraic structures. Also use when the user mentions 'group', 'ring', 'field', 'homomorphism', 'isomorphism', 'normal subgroup', 'quotient group', 'Sylow theorem', 'Galois theory', 'polynomial ring', 'ideal', 'module', 'vector space', or 'representation theory'.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

Expert-level acoustics knowledge. Use when working with sound waves, acoustic propagation, resonance, standing waves, Doppler effect, room acoustics, ultrasound, noise control, musical acoustics, or architectural acoustics. Also use when the user mentions 'sound wave', 'decibel', 'frequency', 'resonance', 'standing wave', 'Doppler effect', 'acoustic impedance', 'reverberation', 'ultrasound', 'noise control', 'harmonics', or 'sound intensity'.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

Expert-level aerodynamics covering subsonic and supersonic flow, lift and drag, airfoil theory, boundary layers, compressible flow, and CFD methods.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

Expert-level air quality engineering covering pollutant sources, atmospheric dispersion, air quality standards, emission controls, and air quality modeling.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

Expert-level aircraft structures covering structural design philosophy, wing and fuselage analysis, fatigue and damage tolerance, composite structures, and certification.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

Expert-level algorithms and complexity theory covering sorting, searching, graph algorithms, dynamic programming, greedy algorithms, NP-completeness, and algorithm design paradigms.

The English summary is being prepared. Showing the original description.

luokai0/ai-agent-skills-by-luo-kai13Updated May 6, 2026

See all skills by luokai0

Report a problem with this skill