this post was submitted on 25 Nov 2026
465 points (96.8% liked)
Fediverse
45093 readers
595 users here now
A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, Mbin, etc).
If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!
Rules
- Posts must be on topic.
- Be respectful of others.
- Cite the sources used for graphs and other statistics.
- Follow the general Lemmy.world rules.
Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I used Reddit for 11 years. After I was laid off from Meta, I suddenly had a lot more free time to spend online. However, Reddit had become increasingly toxic, with a lot of karma farming, so I decided to give Lemmy a try.
I really liked the concept, but I couldn’t convince my friends to switch to Lemmy.
There are several problems with the platform:
To attract more users, Lemmy needs either more powerful servers, which are expensive to maintain, or a much lighter and more efficient codebase that even smaller servers can handle.
Since I don’t have access to the serverside code, and I can’t force instance owners to adopt a more efficient implementation, I decided to approach the problem from the client side.
That’s why I started working on improving caching directly within the app.
Instead of requesting data from the server every time someone opens a post or community, the app can handle much of the caching itself.
The idea is to prioritize data in this order:
This should significantly reduce unnecessary server requests, lower server workloads, and make it more affordable for smaller instances to support their communities.
I believe improving the client experience and reducing server costs are both important steps toward making Lemmy more accessible and scalable.
The Lemmy API is very fat, returning a lot of redundant data in each response. Check out the post/list endpoint, for example.
You need that endpoint all the time because it's the only way to get lists of posts. Yet it is very heavy on the server to generate it. Unsalvageable.
With PieFed I'm experimenting with a trimmed down post/list that is 3x faster. PieFed in general is much lighter on server resources. !piefed_dev@piefed.social
The Lemmy codebase isn’t well suited for scaling... I’ll test your approach on PieFed, that's sounds interesting 🤔
Cool! The PieFed API is very similar to the Lemmy one, to make porting apps easier.
My experimental slim endpoint is post/list2
How many users/servers you have so far? 🤔
Around 6k MAU, 85 servers.
https://piefed.social/statistics?software=PieFed
I guess I’ll add support for Piefed to my APP. It’s good to see that someone else has recognized Lemmy’s underlying problems 👏🏼
Indeed
https://join.piefed.social/2024/02/13/technical-performance-of-each-fediverse-platform/
Compare
Old style: https://piefed.social/api/alpha/post/list?community_name=asklemmy%40lemmy.world
New style: https://piefed.social/api/alpha/post/list2?community_name=asklemmy%40lemmy.world
Rather than including the full community and user details, there are just IDs. The details of the community and user will have been cached on the client by previous API calls.
It's here https://github.com/LemmyNet/lemmy
I mean, I can't force people to use my updated code :) sorry for my English
I joined the Fediverse in 2018. First, I was on Mastodon. Then I started up my own Akkoma instance in 2022.
I think the model of building one big flagship server to funnel all new users is largely a fool’s errand for many of the reasons you describe.
But also, I’ve come to understand that the best way to approach scale is simply through more servers and clients. Perhaps better account portability would do the trick too, but mostly it’s more servers and clients that will build scale.
At some point, I’d like it to be dead simple for any site—including static sites—to become federated.
I think we need both approaches: more independent servers and more efficient clients. Making servers cheaper to run would also encourage more people to host their own instances..
There are already a large number of smaller instances to join. The fact that a huge monolithic instance (.world) has to bear additional costs for being so is a good thing. It incentivizes people starting up their own smaller instances, and distributes power and influence more equitably.
I agree that distributing power across independent instances is important. However, I don’t think making large instances more expensive is necessarily the best way to encourage decentralization. High hosting costs can also discourage people from starting smaller instances. I think making the codebase more efficient benefits everyone, regardless of instance size.
If you look at the user numbers, they grew from around 40k to 80k, but then dropped back to around 40k. My understanding is that the sudden growth put too much pressure on the servers, causing performance issues and driving users away. Eventually, activity stabilized around 40k again.
I think this shows that server scalability is a real problem. We shouldn’t rely on high hosting costs to encourage decentralization we should make the platform efficient enough to handle growth.
When the user count reached 80k, people started complaining that everything was extremely slow.
You can turn up an instance with only you as a user if you like. You don't have to have open enrollment. Or find a group of friends to split the hosting cost with, it would be cheap.