We (Growth-Team) are exploring options to have more link-recommendations available for our newcomers. One possible approach would be to generate these on the fly as the newcomer is reading a page.
The very simplified approach would be:
- newcomer opens an article
- api-request from javascript to the wiki, asking for link-recommendations for that page
- if none are found in the db, then make a server-side request to the internal linkrecommendations endpoint to generate recommendations for that page
- store the recommendations in the database and then return them to the newcomer
Would that at all be possible?
I think "usual usage" should probably not be a problem with some mitigations, but I'm concerned about the abuse potential.
One possible approach to mitigate abuse could be to heavily rate-limit the allowed number of requests, for example, 1 request per user per minute.
Based on our current tracking of ~two days, an upper limit would be less than 250 requests per hour per wiki on both eswiki and frwiki. The actual number is likely much lower because we have yet to apply filters like "page is protected" or "page has been edited in the last days".
The plan would be to try this as a "progressive enhancement" on a few pilot wikis first, in a way that it can be disabled with a simple config change.
What do you think? I'm looking forward to having a conversation around this and seeing if we can make it happen as an experiment.