• 0 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle
  • Coming in late here, but your best starting point I think is to find someone that has published a list of known federated lemmy servers, or build your own.

    • I think there’s an API endpoint (IDK if you have to be an authenticated user to access) that lists which servers a particular server is federated to
    • Use that to query all the servers in that list at the same endpoint, deduplicate, and repeat to build a graph of the fediverse.
    • From there you can use a different API endpoint to query which servers are open vs. closed registration
    • Then you can ping each server to find that latency, but that’s not the whole picture.
      • some servers are starved for resources, or on an older version of software that is less optimized, so there may be a way to use the API to navigate to random posts and capture the time it takes that to complete; probably a more useful metric.
      • Might also be a good idea to get a metric for the number of users on that server too, as that might sway your opinion one way or the other.
    • There might be an endpoint to query the number of banned users, but I don’t recall seeing it.

    IDK if you’re interested in doing that work, but I don’t think anyone has published tooling so far that you can run on your desktop to get that performance info. There’s Python libraries already out there for interacting with the Lemmy API, so that’s a good jumping off point.

    Edit: Now that I’m thinking about it, that could be a pretty useful for the main website(s). They can use those type of queries on the backend to help with suggestions for new user onboarding.