distributed-counter

Community

Design a distributed counter that handles high write rates without data loss.

Authorhung-phan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you design a distributed counter that can handle millions of writes per second without lost updates, hot-shard p99 spikes, or 'view count keeps decrementing' bugs.

Core Features & Use Cases

  • Sharded Counters: Distribute the write load across multiple physical sub-counters.
  • CRDTs: Use Conflict-free Replicated Data Types for distributed counting.
  • HyperLogLog: Estimate unique counts with constant memory usage.
  • Use Case: Ideal for view counts, like counts, ad impressions, vote tallies, rate-limit counters, and unique-visitor metrics where you can tolerate some error.

Quick Start

Generate a distributed counter with the 'distributed-counter' skill and configure the required parameters.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: distributed-counter
Download link: https://github.com/hung-phan/system-skills/archive/main.zip#distributed-counter

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.