[Paper Review] An Empirical Analysis of the Nostr Social Network: Decentralization, Availability, and Replication Overhead
The paper provides the first large-scale measurement of the Nostr ecosystem, showing strong decentralization and high post availability via relay replication, but significant replication overhead and relay sustainability challenges; it also proposes two design innovations to reduce replication and retrieval overhead.
Nostr is a decentralized social network launched in 2022, emphasizing high availability and censorship resistance. Since launching, it has gained substantial attention, boasting over 100 million posts. Nostr resembles a micro-blogging service like Twitter but with distinct underlying infrastructure. Nostr introduces the concept of relays, which act as open storage servers that receive, store, and distribute user posts. Each user is uniquely identified by a public key, ensuring authenticity of posts through digital signatures. Users are able to securely replicate and retrieve posts through multiple relays, which frees them from single-server reliance and enhances post availability, thereby attempting to make Nostr censorship resistant. However, this aggressive design also presents challenges, such as the overhead required for extensive post replication and the difficulty in obtaining a global view of post replication locations, which remain unexplored or unaddressed. This necessitates a thorough understanding of the Nostr ecosystem; therefore, we conduct the first large-scale study on this topic. Our study focuses on two key aspects: Nostr relays and post replication strategies. We find that Nostr achieves superior decentralization compared to traditional Fediverse applications. However, relay availability remains a challenge, where financial sustainability (particularly for free-to-use relays) emerges as a contributing factor. We also find that the replication of posts across relays enhances censorship-resistance but introduces significant overhead. To address this, we propose two improvements: one to control the number of post replications, and another to reduce the overhead during post retrieval. Via a data-driven evaluation, we demonstrate their ability to reduce overhead without negatively impacting post availability under the simulated scenarios.
Motivation & Objective
- Assess decentralization and availability of Nostr relays in a large-scale dataset.
- Quantify post replication and its impact on storage and bandwidth.
- Evaluate relay sustainability and incentives for operators.
- Propose design innovations to reduce replication overhead and retrieval waste.
Proposed method
- Construct a dataset of 17.8 million posts, 1.5 million users, and 712 relays from 2023-07-01 to 2023-12-31.
- crawling 712 relays to collect text notes (kind-1), user profiles (kind-0), following lists (kind-3), and zap events (kind-9735).
- Analyze distribution of posts/users across relays, ASes, and countries to assess decentralization.
- Monitor relay availability using nostr.watch API over 2023-10-01 to 2024-12-31.
- Simulate post availability under relay failures by removing top relays/ASes and evaluating remaining availability.
- Compute post replication metrics (number of relays/ASes per post) and retrieval redundancy.
- Propose two design innovations to reduce post replications and retrieval overhead and evaluate their effectiveness.
- Estimate relay income and sustainability using zap transactions and paid-relay fees.
Experimental results
Research questions
- RQ1How decentralized is Nostr at the relay level in terms of post and user distribution across relays, ASes, and countries?
- RQ2What are the availability characteristics of relays, and how does relay sustainability affect availability?
- RQ3What is the scale and overhead of post replication across relays, and how does replication impact retrieval efficiency?
- RQ4Can design innovations reduce replication and retrieval overhead without harming post availability?
Key findings
- Posts and users are highly distributed across relays; 93% of posts exist on multiple relays and 178 relays (>5% of posts) host a significant share of content.
- Relays are spread across 44 countries and 151 ASes; 52% of countries host fewer than two relays, yet top countries host substantial post and user shares (e.g., US hosts 85% of posts).
- 20% of relays experience downtime >40% of the time, with dead relays identified; removing dead relays improves availability to >80% uptime for 90% of relays.
- Most free relays cannot cover six-month operating costs, with higher admission fees helping only some paid relays; overall, many relays rely on enthusiasts and donations (zap income) rather than stable revenue.
- Posts are replicated across many relays and ASes, averaging 34.6 relays and 12.4 ASes per post, which boosts availability but incurs high storage and bandwidth overhead.
- Post availability remains robust (around 90% after removing the top 50 relays by user activity), but availability when ranking by posts drops after removing the top 30 relays, indicating sensitivity to post-centric centralization.
- The authors propose two innovations to reduce replication overhead and retrieval waste, and show these can significantly cut redundant replications and retrievals without reducing overall availability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.