this post was submitted on 21 Aug 2023
21 points (95.7% liked)

Fediverse

17698 readers
6 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 5 years ago
MODERATORS
 

I've been running my self-hosted one user Pleroma (like Mastodon) instance. When I discovered Lemmy I started following some communities from it and also posted some comments.

Since then lemmy.ml makes one request per second to my /inbox url.

Can someone who knows ActivityPub explain why is necessary one request per second always? What are all these POST requests for?

On top of that, is there any way to tell a server or a relay to stop sending information to my inbox? Like if for example I followed someone in that server, but I don't follow them anymore, is there any way to tell the remote server to stop? If I start returning a 403 or something like that will it stop?

top 7 comments
sorted by: hot top controversial new old
[–] pnutzh4x0r@lemmy.ndlug.org 6 points 1 year ago (1 children)

POSTs are how federation works (ActivityPub is a Push-based protocol). When you "subscribe" to a community on say lemmy.ml, you are telling it to periodically send you updates about that community. This comes in the form of POSTS.

As to the frequency of the POSTs, I can imagine something like lemmy.ml having a lot of activity that it needs to inform your instance of (new votes, new comments, new posts, etc)... but I'm not sure if one request per second is reasonable or not.

[–] namelivia@lemmy.world 1 points 1 year ago

I see, thanks!

[–] wethegreenpeople@sopuli.xyz 5 points 1 year ago (1 children)

That's just how federation works. You've federated with an instance/user so now your self hosted instance will be updated.

Is there a reason you're concerned about the requests? The payloads should be relatively small, and unless you're running on some really old hardware, one request a second with a small payload should not have any noticeable impact.

[–] namelivia@lemmy.world 2 points 1 year ago

Yeah I'm always running my self-hosted projects on the smallest and cheapest VPC I can find. But apart from flooding my logs I haven't noticed anything else being too much affected by this. I'm currently improving the observability of my system though, so who knows.

I was just a little concerned. Thanks for answering!

[–] etchinghillside@reddthat.com 5 points 1 year ago (1 children)

If you inspect the POST what do you see? Is it not just a method to determine if you have unread mail to view?

[–] namelivia@lemmy.world 1 points 1 year ago (1 children)

I haven't inspected the content of the requests though, I just saw them on my proxy logs. It may be worth checking. Thanks!

[–] YurkshireLad@lemmy.ca 1 points 1 year ago

Definitely the content of each request, otherwise you won’t know why your server is being hit. Use wireshark if necessary. Or there’s a command line utility to do the same thing but I can’t remember it’s name right now.