apache / apache/iggy

Replace `DashMap` with `papaya` for `shards_table` in server shard

Open
#2,827 1 comment 1 reaction 1 assignee Claimed by @krishvishal View on GitHub
server
Dominant language
Rust
Stars
4.9k
Forks
432
Avg merge
2d 10h
Merged PRs (30d)
173

Description

The shards_table (`DashMap`) is the shared lookup table that maps partition namespaces to their owning shard. It is queried on every message routing decision (find_shard, resolve) but only written to during partition creation, deletion, or rebalancing, which is ready-heavy workload.

`papaya` is a lock-free concurrent hash map specifically optimized for read-heavy access patterns. Switching `shards_table` from DashMap to papaya should reduce contention on the hot routing path.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.