Mastodon: The Decentralized Social Media Alternative to Twitter

BeginnerSep 19, 2023
Explore the rise of Mastodon, the decentralized social media alternative to Twitter. Dive into its unique structure, benefits, challenges, and potential role in shaping the future of online communication.
Mastodon: The Decentralized Social Media Alternative to Twitter

Mastodon emerges as a beacon of hope for those disillusioned with mainstream options in the ever-changing social media landscape, where platforms rise and fall based on user trust and technological innovation. As controversies swirl around tech behemoths like Twitter, particularly after high-profile acquisitions and policy changes, many seek alternatives that provide more freedom, privacy, and control. Mastodon, a decentralized platform that promises a new approach to microblogging free of the whims of corporate titans and billionaire stakeholders, is one such example. But what exactly is Mastodon, and how does it differ from its more well-known competitors?

The Rise of Mastodon

Launched in 2016 by Eugen Rochko, Mastodon was not initially created to rival Twitter. Instead, it was born out of Rochko’s desire for a decentralized social network where users could communicate without the constraints of mainstream platforms. Unlike Twitter, which operates on a centralized model with a single set of rules and policies, Mastodon is a federation of servers, each hosting its community with its own rules.

Popularity Surge

Mastodon’s user-friendly interface, similar to Twitter’s, made it simple for newcomers to get started. The events of 2022, however, catapulted Mastodon into the spotlight. When Elon Musk took over Twitter in October of that year, many users began looking for alternatives, concerned about the platform’s future direction. Mastodon, with its promise of decentralization and user autonomy, emerged as a strong contender. The platform attracted a large number of users, many praising its ad-free nature and the ability to select a server (or “instance”) that matched their values.

Mastodon’s decentralized nature protects it from the decisions of a single entity or individual. This structure became especially appealing to those who believed that platforms such as Twitter were becoming increasingly influenced by corporate interests and high-profile personalities who may prioritize profit over user experience. Furthermore, Mastodon’s funding model distinguishes it. The platform is supported by crowdfunding rather than advertising revenue. This ensures the platform is free of advertising influence, allowing for a more organic user experience.

The rise of Mastodon is a testament to the changing dynamics of the digital world. As users become more conscious of their online privacy and the power dynamics at play in the digital realm, platforms that offer greater control and autonomy are gaining traction. Mastodon’s growth is not just a reaction to events surrounding platforms like Twitter; it indicates a broader shift towards decentralized digital spaces where users have a say in how their online communities are governed.

The Mastodon Platform: A User-Centric Experience

Mastodon, often hailed as the decentralized alternative to mainstream social media, offers a unique experience for its end-users. Unlike platforms driven by engagement metrics and advertising revenue, Mastodon’s decentralized nature ensures a user-centric approach, prioritizing genuine interactions over algorithm-driven content.

Joining the Mastodon Community

Choosing an Instance

Mastodon’s decentralized structure means users can select from many servers or “instances” to join. Each instance has its unique community vibe, rules, and moderation policies. Whether you’re an artist, tech enthusiast, or just someone seeking meaningful conversations, there’s an instance tailored for you.

Source: https://instances.social/

Profile Creation

Setting up a Mastodon profile is straightforward. Users can personalize their profiles with avatars, display names, and bios. Unlike mainstream platforms, Mastodon encourages genuine representation, allowing users to showcase their interests and personalities.

Navigating Mastodon

Source:zdnet

Timelines and Interactions: Mastodon offers multiple timelines, including Home, Local, and Federated, ensuring users control the content they view. Interactions on Mastodon, such as “toots,” “boosts,” and “favorites,” provide a familiar yet distinct experience from other platforms.

Content Warnings and Accessibility

One of Mastodon’s standout features is its emphasis on user sensitivity and accessibility. Users can add content warnings to their posts, allowing others to view content at their discretion. Additionally, Mastodon promotes the inclusion of image descriptions, ensuring content is accessible to all, including those with visual impairments.

Engaging on Mastodon

Community and Conversations: Mastodon’s user-centric approach fosters genuine conversations. Without the pressure of engagement metrics, users can engage in meaningful discussions, share insights, and build connections.

Safety and Moderation

Each Mastodon instance has its moderation policies, ensuring users have a safe space to interact. Tools like blocklists, content filters, and report features empower users to curate their experience.

Mastodon’s commitment to user autonomy, genuine interactions, and community-driven ethos sets it apart digitally. As users seek platforms prioritizing their needs over corporate interests, Mastodon stands as a beacon of hope, championing a more inclusive and authentic online experience.

The Unique Structure of Mastodon

Components of a single Mastodon instance, Source: https://softwaremill.com/

Mastodon’s backend is primarily a Ruby on Rails application, similar to Twitter’s early days before transitioning to Scala and custom libraries due to scalability concerns. This monolithic structure may appear traditional, but platforms like StackOverflow have demonstrated that monoliths can be extremely successful.

Mastodon’s primary data source is a PostgreSQL database (abbreviated as PG). This database is the heart of any Mastodon instance, storing user data, posts, and other information. Maintaining regular backups of this database is critical; losing its data would mean starting over with no users or posts.

Complementing PostgreSQL is a Redis server, an in-memory database. Mastodon utilizes Redis in two primary roles: as a cache and as the data storage for its job system. From data propagation to user notifications, this job system, which runs on Sidekiq, manages a wide range of tasks. Given the volume of jobs a bustling Mastodon instance can generate, Sidekiq’s efficiency becomes paramount.

For those seeking enhanced search capabilities, ElasticSearch can be integrated to index and search posts, mentions, and favorites. Additionally, Mastodon employs a node.js server to manage streaming requests, which can be delivered through a web socket or a long-lived HTTP request. This streaming encompasses various timelines and user-specific notifications.

Lastly, file storage, which includes media attached to posts and profile pictures, can either be local or offloaded to services like S3, providing a scalable solution for growing instances.

Data Flow in Mastodon: From Toot Creation to Propagation

Source: https://softwaremill.com/

When a user creates a post (or “toot” in Mastodon speak), it is saved in the PostgreSQL database. It is also added to local followers’ home feeds, cached in Redis for quick retrieval. However, the real magic happens when non-local followers on other servers are considered. To propagate a post to them, a Sidekiq job is initiated for each server where the user has followers. This decentralized approach ensures that posts reach a global audience, irrespective of where they originate.

Interactions, such as replies, boosts, and favorites, follow a similar propagation pattern. If these interactions originate from a different server than the original post, the originating server is notified before the data is propagated to other relevant servers.

Scaling and Growth of Mastodon

Source: https://softwaremill.com/

As Mastodon instances grow in popularity, ensuring they can handle increased loads becomes vital. Three primary components can be scaled:

  1. PostgreSQL Database: While write operations might be limited to vertical scaling, read operations can be horizontally scaled using hot read replicas.
  2. Redis: Separate Redis instances can be established for different tasks. For instance, Sidekiq jobs, which require persistence, can be managed by one Redis instance, while volatile home feed caches can be handled by another. Redis offers scalability through Redis Sentinel (for fail-over) or Redis Cluster (to distribute cache keys across nodes).
  3. File Storage: For instances with significant media content, transitioning to S3 or similar services can offload the storage burden.

However, there’s a ceiling to how much a single Mastodon instance can scale. When this limit is reached, Mastodon’s federated nature comes to the rescue. By distributing the load across multiple instances, the platform can continue to grow. Yet, challenges arise when users with vast follower counts across numerous instances become active. The data propagation required for such users can strain the system, especially if their posts garner significant interactions.

Decentralization

Mastodon stands out with its federated system, starkly contrasting traditional platforms that rely on centralized servers. This system comprises multiple independent servers, known as ‘instances.’ Each instance functions like its own social media realm, fostering unique communities with distinct rules. Such a structure not only bolsters resilience against widespread failures but also decentralizes power, championing a more democratic online space.

Customization

The decentralized model of Mastodon offers a high degree of customization. Each instance can establish its own rules, guidelines, and even feature sets. This allows communities to form around specific interests, ideologies, or languages. For instance, there might be a Mastodon instance dedicated to photography enthusiasts, another for a specific linguistic community, and yet another that prioritizes strict content moderation to create a family-friendly environment

Open Source

Mastodon’s commitment to transparency and community-driven development is evident in its open-source nature. Anyone can access Mastodon’s code, contribute to its development, or even use it to create their platform version. This open-source approach fosters innovation and ensures that a global community of developers and enthusiasts continuously improves upon the platform.

Mastodon’s unique structure, characterized by its decentralization, customization capabilities, and open-source ethos, sets it apart in the crowded social media landscape. It offers a refreshing alternative to the one-size-fits-all approach of mainstream platforms, empowering users to craft their own social media experiences. Whether it’s joining an instance that mirrors one’s interests or values or diving into the code to contribute to Mastodon’s evolution, the platform provides avenues for active participation rather than passive consumption.

Understanding ActivityPub and the Fediverse

Mastodon’s ability to communicate across a network of independent servers isn’t magic; it results from implementing a standardized, open protocol called ActivityPub. This protocol serves as the foundation of Mastodon’s federated structure, allowing for seamless communication not only between Mastodon instances but also with any software that adheres to the ActivityPub standard.

The “fediverse” (short for “federated universe”) is an interconnected network of websites and platforms that communicate via ActivityPub and the World Wide Web. Mastodon is a significant player in the fediverse, but it is only one of many. Other platforms are:

  • Pleroma: A modular microblogging engine
  • Pixelfed: A federated image-sharing platform for sharing and consuming media posts
  • Misskey: Combines microblogging with a customizable dashboard
  • PeerTube: A platform for uploading and sharing videos
  • Plume: Designed for publishing longer-form articles

And the list goes on, encompassing various platforms and individual personal websites. While “Mastodon” might be a more recognized name, saying “follow me on the fediverse” is technically more encompassing, as it refers to the entire interconnected network and not just one platform.

Mastodon vs. Twitter: A Comparative Analysis

Source: Wikipedia

User Base

While Twitter is undeniably one of the social media behemoths, with a user base in the hundreds of millions, Mastodon offers a more intimate community experience. Mastodon, which has an estimated 2.5 million users, provides a quieter, more community-driven environment. This smaller scale can be advantageous for those seeking meaningful interactions and a sense of community instead of the noise and clutter commonly associated with larger platforms.

Content Moderation

Twitter, with its centralized structure, has a single set of rules and policies that apply platform-wide. Mastodon, on the other hand, allows each instance to set its moderation policies. This decentralized approach to content moderation offers users a choice in their online environment, but it also challenges ensuring consistency across the platform.

User Interaction

Mastodon’s interface may appear familiar to Twitter users at first glance. Users on both platforms can send short messages, but while Twitter uses tweets, Mastodon uses “toots.” Mastodon also provides more post-length flexibility, with a default character limit of 500 compared to Twitter’s 280 (if you do not have Twitter Blue).

Mastodon interactions include “favorites” and “boosts,” which are similar to Twitter’s “likes” and “retweets.” Mastodon, on the other hand, offers additional features such as content warnings, which allow users to hide potentially sensitive content behind a warning label and give readers the option of viewing it or not.

Ownership and Monetization

Twitter’s monetization strategy revolves around advertising, with promoted tweets and ads being a regular feature on user timelines. This has often led to concerns about user data privacy and the platform’s susceptibility to advertiser influence.

Mastodon, in contrast, operates without ads. Its primary funding comes from crowdfunding and donations, ensuring that the platform remains user-centric without the influence of advertisers. This model not only enhances user experience by eliminating ads but also ensures greater respect for user data and privacy.

While both Mastodon and Twitter offer microblogging platforms for users to share and interact, their underlying philosophies, structures, and features set them apart. Mastodon’s decentralized, community-driven approach offers a refreshing alternative to Twitter’s centralized model, though each comes with its own advantages and challenges. As users become more discerning about their online spaces, understanding these differences is crucial in choosing the platform that best aligns with one’s needs and values.

A Curious Tangle with Twitter

In a surprising turn of events in December 2022, Twitter suspended Mastodon’s official account, @joinmastodon, after it shared a link to a new Mastodon account, @ElonJet. This account was dedicated to broadcasting the public flight path data of Elon Musk’s private jet and had been previously suspended from Twitter itself. The ripple effect didn’t stop there. Several journalists from renowned publications like CNN, The New York Times, and The Washington Post, along with various independent journalists, faced suspensions for either linking to the Mastodon account or discussing the event. Moreover, reports emerged that users, including celebrities like George Takei, could not tweet links to Mastodon servers, receiving error messages labeling the links as “potentially harmful.” This incident underscored the power centralized platforms hold, highlighting the arbitrary limitations they can impose on content and communication. It serves as a stark reminder of the importance of decentralized platforms like Mastodon, which champion user autonomy and freedom of expression.

The Challenges of Decentralization

Content Moderation Issues

A recent study from Stanford highlighted a significant concern: the presence of harmful content on Mastodon. The decentralized nature of Mastodon means that no single entity oversees the entire platform. Each instance has its administrators responsible for content moderation. However, these admins cannot control or moderate content in other instances, leading to potential safe havens for harmful content.

Instance Variability

The quality, safety, and ethos of each Mastodon instance can vary widely. While some instances may prioritize strict content moderation and create safe, inclusive environments, others might adopt a more laissez-faire approach, leading to potential issues. Users must be discerning when choosing an instance, ensuring it aligns with their values and safety expectations.

Interoperability Challenges

Mastodon’s integration into the Fediverse allows it to communicate with other platforms such as PeerTube, Friendica, and Lemmy. While this interoperability improves the user experience by creating a more interconnected digital ecosystem, it also makes moderation more difficult. Content can easily spread from one platform to another, making it difficult to track, monitor, and control harmful or misleading information.

Mastodon’s decentralized model represents a promising alternative to the centralized models of mainstream social media platforms. It gives users more autonomy, choice, and control. However, it is not without difficulties. Maintaining user safety across multiple instances, as well as navigating the complexities of interoperability, are issues that the Mastodon community and other decentralized platforms will need to address as they grow and evolve.

The Future of Social Media

The Need for Decentralization

As the digital age progresses, concerns surrounding privacy, censorship, and corporate control in social media have become increasingly pronounced. Centralized platforms, while offering convenience and a vast user base, often come under scrutiny for their handling of user data, content moderation policies, and potential biases. In this context, decentralized platforms like Mastodon represent the next logical step in the evolution of online communication. They offer a model where power is not concentrated in the hands of a few but distributed among the many, ensuring a more democratic digital space.

Potential Pitfalls

However, decentralization, like any other form of innovation, comes with its own set of challenges. As we have seen, when there is no central authority overseeing content moderation, it becomes a difficult task. Furthermore, ensuring a consistent user experience across multiple instances can take time and effort. There is also the risk of fragmentation, in which the user base becomes so dispersed across different instances that it undermines the sense of a unified community.

Balancing Freedom with Responsibility

The key to Mastodon’s future success lies in striking the right balance between user freedom and platform responsibility. While it’s essential to provide users with autonomy and choice, it’s equally crucial to ensure that the platform doesn’t become a haven for harmful content or malicious actors. This will require continuous dialogue between instance administrators, users, and the broader Mastodon community.

Adapting to Change

The digital landscape is ever-evolving, with new technologies, platforms, and challenges emerging regularly. For Mastodon to remain relevant and continue its growth trajectory, it must be adaptable. This means not only addressing current challenges but also anticipating future ones. Whether integrating new features, improving interoperability with other platforms, or enhancing security measures, Mastodon will need to be at the forefront of innovation.

Social media’s future is uncertain, with changing user preferences, technological advancements, and societal shifts playing important roles. Platforms that prioritize user autonomy, decentralization, and community engagement, such as Mastodon, are poised to play a significant role in shaping this future. While there are challenges, there are opportunities for growth, improvement, and further innovation. In the future, the ability of platforms like Mastodon to adapt, evolve, and meet the ever-changing needs of the digital community will determine their success.

Conclusion

Mastodon, with its decentralized ethos, stands as a testament to the evolving landscape of social media. Its unique federated structure, underpinned by the ActivityPub protocol, offers a refreshing divergence from the centralized models of platforms like Twitter. While it provides users unparalleled customization and a sense of community, it also grapples with challenges inherent to its decentralized nature, especially in content moderation. As we’ve explored its rise, benefits, and hurdles, it’s evident that Mastodon, along with the broader fediverse, holds significant potential in reshaping our online interactions. As the digital realm continues to evolve, platforms like Mastodon will undoubtedly play a pivotal role in steering the direction, emphasizing user autonomy, community engagement, and open-source innovation.

Author: Piero
Translator: Cedar
Reviewer(s): Matheus、Edward、Ashley He
* The information is not intended to be and does not constitute financial advice or any other recommendation of any sort offered or endorsed by Gate.io.
* This article may not be reproduced, transmitted or copied without referencing Gate.io. Contravention is an infringement of Copyright Act and may be subject to legal action.
Start Now
Sign up and get a
$100
Voucher!
Create Account