this post was submitted on 05 Sep 2024
108 points (98.2% liked)
Technology
59204 readers
3190 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's not what I mean. Lemmy has two separate repositories: one for the backend, and one for the default frontend. New frontends can be written and straight-up hooked into the server's backend instead of making all those API calls. For example, see https://photon.lemmy.dbzer0.com/ vs https://lemmy.dbzer0.com/.
Well, Lemmy's front end talks to it's back end via an API, which is pretty much how every web app of any scale works these days.
There's really not any particular difference between a monolithic app vs a seperate front end in terms of "all those API calls" since everything is basically calling APIs at this point, if they're not made by complete incompetents. (In the case of Mastodon, though, I suppose complete incompetent is possible.)
Oh, I didn't realize that.
photon doesn't directly communicate with the backend, it's not intended for that. but even then, lemmy-ui is almost entirely client side (for some reason) and it makes its calls to the API