ByteByteGo 03月25日 23:40
Bluesky: The Decentralized Social Media App with 30 Million Users
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了Bluesky——一个新兴的去中心化社交媒体平台,它旨在赋予用户更大的控制权、互操作性和透明度。Bluesky基于AT协议,允许用户拥有自己的身份,迁移账户,并通过模块化服务定制体验。文章详细介绍了Bluesky的架构,包括个人数据服务器(PDS)、中继(Relays)和应用视图(App Views)等关键组件,以及它们如何协同工作以实现内容的存储、分发和管理。此外,文章还阐述了Bluesky如何通过去中心化身份(DIDs)实现账户的可移植性,以及用户如何在不同服务器之间无缝迁移。

🔑Bluesky基于AT协议构建,AT协议是一个用于大规模分布式社交应用的联邦协议,其核心在于去中心化,旨在打破单一公司对用户数据和内容的控制。

🏢Bluesky的架构由三个主要组件构成:个人数据服务器(PDS)负责存储用户数据和管理身份验证,类似于用户在网络中的代理;中继(Relays)作为网络范围的内容聚合器,收集和分发用户生成的数据,确保内容的可发现性;应用视图(App Views)处理来自中继的数据,生成用户在客户端看到的结构化Feed。

🔄用户在Bluesky中拥有对其身份的完全控制权,AT协议使用去中心化标识符(DIDs)作为持久的账户标识符,确保用户身份独立于任何单一服务器或提供商。这意味着用户可以无缝地在不同的服务器之间迁移,而不会丢失他们的身份或关注者。

✍️在Bluesky中,当用户发布内容时,内容将作为记录存储在其个人数据服务器(PDS)中,并添加到其加密签名的存储库中。PDS将更新推送到中继,中继验证签名并存储记录的副本,然后通知所有应用视图和Feed生成器有新内容可用。应用视图从Relay中提取数据,应用审核规则,并根据用户偏好生成自定义Feed。

🛡️DIDs提供了自托管身份,这意味着用户拥有并控制自己的身份,无需依赖中央机构。每个DID都有一个签名密钥,用于验证用户操作,以及一个恢复密钥,用于在密钥丢失或泄露时恢复对身份的访问。

Webinar: Implementing Clean Architecture in Next.js (Sponsored)

In this free on-demand workshop, Lazar Nikolov will teach you all about implementing Clean Architecture in Next.js. It will dive deep into what clean architecture *actually* is, what problems it solves, and how to implement it in a Next.js application with Sentry.

Watch On Demand Here


Disclaimer: The details in this post have been derived from the Bluesky Official Documentation and Research Papers. All credit for the technical details goes to the Bluesky engineering team and the developers involved in creating the AT Protocol. The links to the original articles and papers are present in the references section at the end of the post. We’ve attempted to analyze the details and provide our input about them. If you find any inaccuracies or omissions, please leave a comment, and we will do our best to fix them.

Bluesky is the relatively new social media platform in town. It is a decentralized social media platform designed to offer users greater control, interoperability, and transparency compared to traditional, centralized social networks.

Built on the AT Protocol (Authenticated Transfer Protocol), Bluesky enables a new way of managing online identity, content, and interactions while preserving the user experience of conventional social media platforms. 

For reference, the AT Protocol is a federated protocol for large-scale distributed social applications. Being federated is essentially the main selling point of Bluesky. Here, the term “federated” signifies that the various components of the system can have multiple groups running them and that they communicate with each other. For example, think of a system like an email. Gmail, Yahoo, and Outlook are separate email providers, but they can still send and receive emails from each other. No single company owns “email”. 

The primary goal of Bluesky is to break the control of a single corporation over user data, moderation policies, and content discovery algorithms. Unlike traditional social networks, where users are locked into a platform, Bluesky allows users to retain their identity, migrate accounts, and customize their experience through modular services.

In other words, Bluesky’s unique design philosophy allows the users to engage without platform control. The platform now has almost 30 million users and is growing steadily.

In this article, we will look at Bluesky’s architecture and its use of the AT protocol to make things possible.

Why Decentralization is Important?

For years, social media platforms have been controlled by large corporations. These companies create rules, control algorithms, and decide what content gets seen. Much of this happens without transparency. 

If they change policies or ban users, there’s little a user can do. This lack of control over personal data and content moderation has led to a push for decentralized social networks, where users can potentially have more freedom and ownership.

However, many existing decentralized platforms come with their own set of challenges:

Bluesky aims to solve these problems through a combination of decentralization and usability by:

How Does Bluesky Work?

As mentioned, Bluesky is built on the AT Protocol.

The AT Protocol consists of several key components that work together to store, distribute, and curate content without relying on a single centralized entity.

The diagram below shows a high-level architecture of Bluesky’s Federated Architecture.

1 - Personal Data Servers (PDS)

Each user has a repository or a collection of records containing their posts, likes, follows, and other interactions. Also, every action a user takes (for example, posting a message or liking a post) creates a new record in their repository. The repository structure is cryptographically signed to ensure data integrity. Think of the repository as a version-controlled record store (similar to a Git repository).

These repositories are managed by Personal Data Servers (PDS).

A PDS is responsible for storing user data and managing authentication. It is like the user’s agent within the network. You can think of the PDS as a service that runs user repositories, exposing HTTP endpoints and WebSockets for communication.

PDSes can be hosted by companies, independent providers, or even by users themselves, resulting in flexible data ownership.

This does not mean that every user needs to run and manage a PDS on their machine. Similar to how email services work, users can sign up for a PDS hosted by a provider. For example, a user can opt for Bluesky’s default hosting. Bluesky runs many PDSes, where each PDS runs as a completely separate service in the network. More advanced users can self-host their PDS on a private server or VPS.

2 - Relays

Relays act as network-wide content aggregators that collect and distribute user-generated data. 

Instead of each user or server handling network-wide indexing, relays create a global index of posts, likes, and social connections to ensure content is discoverable. 

They crawl all known PDSes and subscribe to their real-time updates. They also filter out malformed, illegal, or high-volume spam before passing updates to other components.

Bluesky currently operates the default relay, which indexes posts, likes, and follows across the network. However, in the future, third-party organizations, developers, or individuals can run their Relay nodes, allowing for diverse indexing strategies such as community-specific relays, interest-based relays, or censorship-resistant relays.

See the diagram below:

3 - App Views

App Views process data from relays and generate structured feeds that users see in their clients. They store aggregated statistics (like counts of likes and replies) and enforce moderation policies by blocking certain interactions based on user preferences.

Bluesky provides an official App View, which powers the default feed that users see. This App View curates content, applies moderation policies, and displays posts in a user-friendly manner. However, developers and communities can create custom App Views that provide alternative ranking algorithms, filter out certain types of content, and offer specialized feed experiences.

Unlike traditional social networks, where a central company controls recommendation algorithms, Bluesky allows multiple competing App Views that users can choose from. Users can also choose multiple App Views based on their preferences.

How Do These Components Work Together?

Here’s a simple process flow that demonstrates how the various components come together to support the Bluesky experience:

The diagram below tries to show this flow:

User Identity and Account Portability in Bluesky

Bluesky is designed to give users full control over their identity, making it different from traditional social media platforms, where accounts are locked to a single service provider.

The AT Protocol uses Decentralized Identifiers (DIDs) as persistent, long-term account identifiers to create permanent user identities independent of any single server or provider.

Each DID has two key pairs:

DIDs provide a self-sovereign identity, meaning that users own and control their identity without reliance on a central authority. While users have a DID, they also have a readable username for easier recognition. For example: “@username.bsky.social”.

Migration Between Servers

One of the biggest challenges in federated social networks is account migration. Here’s how it works in Bluesky.

This system allows users to change providers without losing their identity or network. Users can also retain their social graph even if a provider shuts down. Users can also host their PDS if they prefer self-sovereignty over third-party hosting.

Security and Privacy Considerations

Since each DID is cryptographically linked to the user’s identity, it cannot be forged or stolen. 

Even if a hacker takes over a username (“@someone.bsky.social”), they cannot impersonate the original DID, preventing identity theft. Users can verify each other’s identity using DID resolution tools, similar to how SSL certificates validate websites.

Users have a recovery key that allows them to regain control over their account in case of a security breach.

Content Discovery and Custom Feeds in Bluesky

Content discovery and feeds are one of Bluesky’s key innovations.

In Bluesky, content is not stored on a single server or database. Instead, relays act as global content indexers that aggregate and distribute posts across the network.

Here’s what the relays do:

In a traditional social media platform, the company that owns the service also decides how content is ranked and displayed in user feeds. This often leads to non-transparent algorithmic filtering, where users are shown posts based on engagement metrics.

Bluesky removes this centralized control by introducing App Views, which play the role of independent feed curators. Developers can create publicly available feed generators anyone can subscribe to. These feeds may focus on specific topics such as technology news, verified accounts, or trending discussions.

Moderation and Content Control in Bluesky

In Bluesky, users can post anything they want. Their PDS stores these records, ensuring that their content remains available. No single authority can delete a post from the entire network. Even if a provider refuses to display it, the data remains intact in the user’s repository.

However, just because a post exists does not mean it will be indexed, promoted, or widely visible. Moderation services and App Views determine how content appears in feeds and searches. This means harmful or offensive content can be downranked, filtered, or hidden, but not erased from a user’s storage.

This concept is called “separation of speech and reach”, which allows for free expression while maintaining content control at different levels.

Labelers and Moderation Services

Bluesky does not enforce a single, centralized moderation system. Instead, it allows multiple independent moderation services, which work together to flag, filter, and categorize content. This includes:

Labelers are third-party moderation services that tag content with appropriate labels. Imagine a label as a metadata to categorize the content. These labels do not remove content but allow App Views and users to apply filters based on their preferences. Users can choose which Labelers they trust, meaning moderation is customizable rather than forced. All of this information is stored on the user’s data server.

Bluesky provides both individual-level and community-level blocking tools to ensure user safety and content control. Some features are as follows:

Conclusion

Bluesky represents a major step forward in decentralized social networking, offering a platform where users have true control over their identity, data, and content experience.

Through the AT Protocol, Bluesky ensures that social interactions remain scalable, transparent, and resistant to corporate control.

Looking ahead, Bluesky’s future will be shaped by user adoption, third-party innovation, and continued improvements to the AT Protocol. Some key expected developments include:

References:


SPONSOR US

Get your product in front of more than 1,000,000 tech professionals.

Our newsletter puts your products and services directly in front of an audience that matters - hundreds of thousands of engineering leaders and senior engineers - who have influence over significant tech decisions and big purchases.

Space Fills Up Fast - Reserve Today

Ad spots typically sell out about 4 weeks in advance. To ensure your ad reaches this influential audience, reserve your space now by emailing sponsorship@bytebytego.com.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Bluesky AT协议 去中心化 社交媒体
相关文章