SShortSingh.
Back to feed

Why Redis Cluster Uses Exactly 16,384 Hash Slots, Not 65,536

0
·3 views

Redis Cluster distributes all data across a fixed total of 16,384 hash slots, regardless of how many nodes are in the cluster. This specific number was chosen by Redis creator Salvatore Sanfilippo, also known as antirez, as a deliberate engineering trade-off rooted in memory efficiency and network performance. Unlike simple modulo hashing, where adding a new node forces the majority of keys to remap — causing massive data reshuffling — a fixed slot system allows only the affected slots to migrate between nodes. The choice of 16,384 over the more common 65,536 boundary keeps the cluster's slot-mapping bitmap small enough to fit efficiently in gossip protocol heartbeat messages exchanged between nodes. Understanding this design requires examining the interplay between hashing algorithms, memory structures, and the physical constraints of distributed network communication.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Alibaba to Release Qwen3.8 as Open-Weight AI Model

Alibaba's Qwen team has announced that Qwen3.8, a new AI language model, is launching and will soon be released as an open-weight model. The announcement was made via the official Alibaba Qwen Twitter account. Open-weight models allow developers and researchers to access and use the model's parameters freely. The release is expected to expand accessibility to Alibaba's latest AI capabilities for the broader developer community.

0
ProgrammingDEV Community ·

Developer builds 31 browser-based tools in a weekend to avoid ad-heavy alternatives

A developer created DevKits, a free collection of 31 developer utilities spanning categories like JSON formatting, encoding, security, and AI token counting, all accessible at devkits.vip. The project was motivated by frustration with existing tools that display ads, track users, and upload sensitive input data such as JWTs to remote servers. Every tool in DevKits runs entirely client-side in the browser, with no accounts, cookies, or cross-site tracking required. The site is built with Next.js 15, TypeScript, and Tailwind CSS, hosted on Vercel, with an initial JavaScript payload kept under 130KB per page. All 31 tools are managed through a single configuration file, making it possible to add a new tool in roughly 20 minutes.

0
ProgrammingDEV Community ·

GitHub Expands Beyond Software Into Medicine, Chemistry, and Religious Studies

GitHub, widely known as a software development platform, has grown into a collaborative tool used across scientific and academic disciplines. Researchers in medicine are using it to share AI models for drug discovery, disease diagnosis, and genomic analysis. Chemists rely on GitHub repositories for molecular modeling, reaction prediction, and cheminformatics workflows. Religious scholars have also adopted the platform for computational analysis of scriptures and comparative manuscript studies. GitHub's version control, peer review, and open-access features make it a practical infrastructure for reproducible research and open science.

0
ProgrammingHacker News ·

Perforce Charges $500 for AI-Narrated Training Course on Helix Core

Perforce is offering a training course for its Helix Core version control product priced at $500. The course has drawn criticism from users who noted that the instructional videos appear to be narrated by an AI voice rather than a human instructor. The discussion surfaced on Hacker News, where commenters questioned the value proposition of charging a premium price for AI-generated content. The pricing and use of AI narration have raised concerns about the quality and justification of cost for professional developer training materials.