Delay crawling links #62

Open
opened 2025-02-05 15:14:21 +00:00 by leah · 2 comments
Owner

Summary

When every server crawls a link as soon as stuff federates it can cause a lot of stress on servers. We should crawl the link a bit after it federates like mastodon does to try spread out the amount of hits they get on their website.

1be5269151/app/lib/activitypub/activity/create.rb (L69)

Purpose

To stop sites from getting ddossed by mistake

Do you want to implement this feature yourself?

  • Yes, I will implement this by myself and send a pull request
### Summary When every server crawls a link as soon as stuff federates it can cause a lot of stress on servers. We should crawl the link a bit after it federates like mastodon does to try spread out the amount of hits they get on their website. https://github.com/mastodon/mastodon/blob/1be526915161687366e31fdf3456bba644e2ac0b/app/lib/activitypub/activity/create.rb#L69 ### Purpose To stop sites from getting ddossed by mistake ### Do you want to implement this feature yourself? - [ ] Yes, I will implement this by myself and send a pull request
Owner

fae imagines it's not a big problem the way it was implemented on misskey, as misskey only crawls links when somebody sees a post with the link (as opposed to mastodon which always crawls links no matter if anyone sees them or not)

fae imagines it's not a big problem the way it was implemented on misskey, as misskey only crawls links when somebody sees a post with the link (as opposed to mastodon which always crawls links no matter if anyone sees them or not)
Author
Owner

Ah ok I wasnt sure how it was handled in misskeys code. That sounds way better yea

Ah ok I wasnt sure how it was handled in misskeys code. That sounds way better yea
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: woem.men/forkey#62
No description provided.