It still adds complexity. Let’s break out each later of complexity on a community site.
The site has no direct logins. There’s an HTML file some people update together
There’s no currated feed. There’s a single feed all posts go into. When you hit the API you just ask it “give me all the latest posts.” The API server returns you a reasonable number of posts. 20, let’s say
Each user has a feed of their own posts. Now, in addition to what you could get before, you also can make queries for the most recent 20 posts made by a specific user.
Each user has a feed of posts from users they follow. Now when you query the API for your following feed, multiple queries are made. A query is made to see who you follow, and then a query is made to get the most recent 20 posts from a blended feed. This part is actually already quite expensive, but its still sort of the bare minimum you’d expect for a community site like MySpace, Facebook, Twitter, Reddit, Mastodon, or Lemmy
this is where we will deviate from history. It was here that blocks were implemented. However I want to explain blocks in the level of complexity as they exist today. We will revisit later that Elon could reduce complexity by removing any of these other features, leading us to the conclusion that his motivation is not technical in nature
Posts can be threaded, meaning that some posts are only relevant in relation to other posts. You don’t want yo show them when a user makes a query for their, or another user’s feed. But you do need to show them when someone opens a feed for a post. These feeds are threaded in reverse of your other feeds. This necessitates a different database mechanism than the one you use for normal posts. Now you have an architectural problem
Posts can be reposted, including posts in threads, so sometimes you have to load a lot of context when someone goes to their usual home feed
It takes a long time to calculate thread posts, especially now that they sometimes show in the default feed. You determine from usage data that it’s more important to update the feed once the initial feed load is complete so when you load the initial feed, you also load the first 10 posts of every thread in that initial feed. The initial feed load goes from 20 posts to 200 posts even though users only see 20 posts when they see the feed. Its just now when yoh click on one of those feeds, it opens instantly because it was already preloaded
Even though your users engage more if there are preloaded feeds, they’d still engage EVEN MORE if you brought the initial load time down more. You introduce caching. Now parts of feeds are ready to go from your inexpensive to query database instead of your expensive to query database. The cost is you do need some processes in the background ALWAYS updating the expensive to query database so the cheap to query one is always up to date with queries people are likely to make
Your website has become really popular. You need to be able to up and down scale it so that you can meet demand and keep costs low. This means introducing architectural complexity so that different parts can run separately. Your three databases (regular, threaded posts, and cache) are all run on seperate hardware. Your core service is run on a clustering mechanism so you can scale up multiple instances of it at the same time. You even identify parts of the core service that are accessed a lot that could be their own services run on a different clustering mechanism so that they can scale up and down even faster than your core service can
Your website is a global phenomenon. Its not good enough to always be available, users across the globe need to have a good experience. You need cache databases in every region you do business in. You pick as your regions of focus: Western US, Central Canada, Eastern US, Western Europe, Eastern Europe, the Middle East, India, Northern Asia, Southeast Asia, the south pacific, Latin America, and Africa. You need to keep data in sync across all regions, and you must also have local databases for storing posts from users in those regions until you can sync them to the other regions. Your database integrity model has to change entirely now, requiring you to implement a much more complicated database mechanism.
California and Europe have special rules you must follow. You develop special features to satisfy their requirements, and must add special checks for those requirements to all of your API calls.
For marketing reasons, instead of the most recent 20 posts in the main feed, you want to show the top 20 posts based on a calculation of recency, activity from other users, and engagement with your sponsored ads. Loading the feed is now 3x more expensive (in terms of computational time)
Users don’t want to see posts from other users. You must add a list of users for every user representing the users they don’t want to see posts from. You must check on every feed update for posts that don’t conform to these rules and throw them out, and then load a new post in their place. Every time a user blocks another user, you must invalidate the parts of the cache that were relevant to that users feed. Invalidating caches is very expensive
Users don’t want users they block to see their own posts. Now instead of checking a single user’s block list as you load the feed, you must check both that block list, and every block list for ever poster for every post you load. This can make the feed load anywhere between 2x expensive or 200x expensive, depending on the diversity of posters in the feed you’re calculating. You must also invidate more caches for every block
So yes. Blocking users on a website like twitter is complicated (with Twitter’s current implementation and feature set) but there are ways to simplify this better than what Elon is doing. Not preloading tweets on page load or reducing the complexity of the sorting algorithm for the main feed could both do what Elon is claiming this is about. He doesn’t want to get rid of those though. He views them as special important features. He picked blocking as the thing to reduce complications for because he views it as an unimportant feature, antithetical to his personal twitter goals
It still adds complexity. Let’s break out each later of complexity on a community site.
this is where we will deviate from history. It was here that blocks were implemented. However I want to explain blocks in the level of complexity as they exist today. We will revisit later that Elon could reduce complexity by removing any of these other features, leading us to the conclusion that his motivation is not technical in nature
So yes. Blocking users on a website like twitter is complicated (with Twitter’s current implementation and feature set) but there are ways to simplify this better than what Elon is doing. Not preloading tweets on page load or reducing the complexity of the sorting algorithm for the main feed could both do what Elon is claiming this is about. He doesn’t want to get rid of those though. He views them as special important features. He picked blocking as the thing to reduce complications for because he views it as an unimportant feature, antithetical to his personal twitter goals