sharded-counters

Community

Optimize high-scale counting with sharded counters

AuthorArupbiswas09
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides solutions for handling high-write, high-read scenarios where a single row/key cannot serialize increments, ensuring efficient counting and avoiding bottlenecks.

Core Features & Use Cases

  • Sharded Counters: Distribute write load across multiple physical counters for high-write scenarios.
  • Approximate Counting: HyperLogLog for unique counting with low memory footprint.
  • Time-Bucketed Counters: Track counts within a specific time window.
  • Use Case: Use sharded counters for social media likes, where individual counts exceed a single row's serialization capacity.

Quick Start

Implement a sharded counter for likes in a social media app by defining the number of shards and using the provided increment and read functions.

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: sharded-counters
Download link: https://github.com/Arupbiswas09/claude_skills/archive/main.zip#sharded-counters

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.