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

help-circle











  • Developer here. I’ve been looking at the API calls made by the app, and I’ll try to give a good example of what is going on:

    To be honest, you’re probably not going to see a drastic change in API calls right now. The only things that you are calling the API for are:

    • Load items in the feed
    • Load post/comments
    • Load profiles
    • Submit votes
    • Submit comments
    • Submit posts
    • One initial call at app launch to obtain user info (subscriptions, settings, saved posts, etc, lemmy’s API gives you all of this in one call)

    This is about the same use that you’re going to see in the actual web version.

    While there may be upsides and downsides to how they are doing it right now, you can get pretty much all of the info you need through one API call. For example, if I get a post, the response will include most of the user info, most of the community info, and obviously all of the post info, plus more. I don’t need to make separate calls to retrieve all of that data.

    Same goes for user info. In just one call, I can retrieve all of the information as far as subscriptions, moderated communities, user settings, and more without having to make a separate call for each one.

    The issue is going to be mainly just the influx of traffic in general, not the apps themselves from what I can tell.

    I’m also including the app’s name in the user agent so that if something were to ever become a problem, anyone can reach out and discuss what they are seeing so that it can be corrected.