70

Like does content get mirrored to my instance and then mine distributes it ala BitTorrent or is my instance it's own thing?

you are viewing a single comment's thread
view the rest of the comments
[-] ashe@lemmy.starless.one 1 points 1 year ago

The thing is that when you interact with the remote server directly it's not 10 api calls, it's 10 full-blown HTML webpages that have to be served to you, which are way bigger than REST API calls.

[-] sab@lemmy.world 3 points 1 year ago

Generally speaking, lemmy is much more cpu bound than it is bound by bandwidth - so the added bytes don't matter that much. The example above was just for 1 community. Now imagine the user is subscribed to a dozen communities, but doesn't even browse lemmy that day. That's probably thousands of api calls made to keep his server on sync, and 0 requests saved.

Like the big instances have literally hundreds of thousands of workers running in order to get all the updates out. If one of those calls fails, it gets put back into the queue for retry.

OP asked if having his server added to the lemmiverse would alleviate the load "Like with torrent". That is demonstrably not the case - it only adds more workload on the other servers, with a break even point that's highly variable. Yes, your server will be nice and snappy, but the origin servers have to pay the price - death by a thousand ~~papercuts~~ synchronisation calls.

[-] ashe@lemmy.starless.one 2 points 1 year ago* (last edited 1 year ago)

Yeah you're right, I just felt the need to point out that API calls are not really comparable to serving a full website.

this post was submitted on 03 Jul 2023
70 points (98.6% liked)

Selfhosted

40133 readers
534 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS