Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
ATProto Wiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Relay
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Core Functions == The primary purpose of a relay is to collect, validate, and redistribute [[Data repository|repository]] data from across the network. It does this by crawling user repositories hosted on PDSes throughout the network and consuming their real-time update streams. The relay verifies the cryptographic signatures and [[Merkle Search Tree|Merkle Tree]] proofs on all updates to ensure data integrity. Importantly, relays themselves does not interpret or index the records in repositories, but simply stores and forwards them. As a result, developers can create new social experiences on top of the AT Protocol by defining new record types with a [[lexicon]], and these records will flow through relays without requiring any changes to their code. Each relay maintains its own replica of the repositories it tracks, allowing it to detect changes even when real-time notifications are interrupted. This replication provides resilience against network issues and ensures complete data coverage. When network interruptions occur, relays can periodically re-crawl repositories and compare them to its local replica to determine what records have been added or deleted. Through continuous monitoring, relays produce a [[firehose]] - a consolidated stream of all network activity that notifies subscribers whenever records are added or deleted in any tracked repository. This firehose becomes the foundation for building network-wide services. As part of its processing, relays perform initial data cleaning by discarding malformed updates, filtering out illegal content, and reducing high-volume spam, which helps downstream services focus on their specific functions rather than basic data validation.
Summary:
Please note that all contributions to ATProto Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
ATProto Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width