Watching the network tab of Chrome when I have a Lemmy instance open I can watch the websocket data coming in from the server. Even though I have “Subscribed” communities selected, the data stream seems to contain all post data (at first glance it looks like new posts and vote changes) from all communities federated to the instance.

It’s manageable for the moment but if the network grows a lot, that could end up being a huge amount of data that’s sent to users and probably not desirable if users are on slow metered connections. Is this by design?

You are viewing a single thread.
View all comments
3 points

Lemmys WebSockets are being phased out currently and thus all bugs regarding them (wrong vote counters, posts being pushed in at the top in the wrong categories, etc.) are gonna go away as soon as the transition is complete.

permalink
report
reply
1 point

Oh, cool. What’s replacing them?

permalink
report
parent
reply
3 points

Just a “normal” http API as far as I know. There won’t be any live notifications/data on release but this can be added using polling at a later stage. It was mainly done because websockets just don’t scale well at all with thousands of users.

permalink
report
parent
reply
2 points

Yeah, that was my concern. Sounds good to me!

The live posts and notifications are definitely cool but I know it would be challenging to make it both useful and scalable.

permalink
report
parent
reply
2 points

Normal http requests for on-demand content, likely polling for live-updating content.

permalink
report
parent
reply

Lemmy

!lemmy@lemmy.ml

Create post

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

Community stats

  • 206

    Monthly active users

  • 1.1K

    Posts

  • 14K

    Comments

Community moderators