I want to create a sister app at some point that will post topics on to the forum via an API user account - is there any info available on rate limits for this? Can we ‘trust’ certain accounts so that rate limits do not apply?
As far as I know, using an API key (generated in the admin interface) bypasses rate limits that are checked within the rails stack, e.g. limits on the number of posts.
It will not bypass the general limit on the number of requests per second enforced by nginx, but most likely, that won’t be a problem 
You can explicitly bypass validations if you are using the API and API key, the limits in general will hold though.
I’m not too bothered by validations Sam, but by-passing rate limits for specific accounts could be helpful.
Does the response include the specific error code if rate limits have been by-passed? That could be helpful if there’s no chance of including an option to by-pass…
I kind of worry about answering questions about problems that do not exist 
If you hit the limits let me know and let me know what errors you are getting
I did actually hit the limit previously - we currently have 6 monthly giveaways and every night a cron runs to check whether there is a ‘bonus day’, if there is, it posts an update on the forum. What I was finding was the crons running later weren’t posting. However I’ve since changed the cron jobs to run a minute after each other. (This is fine for this situation.)
I’ll keep you posted re the other app (which will be posting via the API much more frequently) though I don’t expect this to go live for a few months yet.
We use discourse via API from a Rails server. Which means all the traffic coming from one IP. We have enough traffic that it hits the rate limiter. I second the need for an API exception to this rate limit.
Cela pourrait être un bon sujet pour que tu commentes aujourd’hui @sam – y a-t-il des limites pour les auto-hébergeurs ? Avons-nous des limites ? Comment en pensons-nous maintenant, puisque cela a changé…
De nos jours, nous avons des limites globales explicites pour l’API, mais parfois ces limites s’accumulent.
Certains contrôleurs imposent des limites, comme le nombre maximum de sujets que vous pouvez créer toutes les N secondes, etc.
Pour des requêtes GET triviales, vous pourriez augmenter considérablement la limite de taux de l’API sans rencontrer de restrictions de la part de Discourse. Il existe toutefois certaines limites dans NGINX que vous devrez ajuster.
Comment cela affecterait-il un compte souhaitant publier de nouveaux sujets ou messages via sa clé API, Sam ?
Où pouvons-nous faire cela, Sam ?
Je envisage également actuellement de créer un portail qui utilisera le gem discourse_api pour récupérer une grande quantité de données depuis le forum. Suis-je susceptible de rencontrer des limites de taux ici ? J’aimerais beaucoup que nous puissions contourner les limites de taux pour les comptes que nous avons marqués comme « sûrs ».
Je recommande de consulter nos limites de taux ici :
Nous devrions avoir de la documentation sur diverses autres limites dispersée sur meta.
Merci, Sam. Pour référence future (et pour toute autre personne qui chercherait cela à l’avenir), voici les détails complets :
J’ai une question concernant les adresses IP privées, mais je la posterai dans le sujet principal. Celui-ci peut probablement être clos à présent, car l’autre sujet est plus récent.