divec / ll

Two-way parallel translation
GNU Affero General Public License v3.0
3 stars 5 forks source link

Generalized debouncing of translation API calls #38

Open trevorparscal opened 5 years ago

trevorparscal commented 5 years ago

Hitting translation APIs too quickly can cause APIs to return errors in the short term and burns through quotas in the long term. Debouncing works great, but should be a lower-level feature of the base translation class.

santhoshtr commented 5 years ago

cxserver has a html reduce and expand feature that transform the content to a very minimal version to save quota(and security, bandwidth, workaround MT engine bugs etc) https://github.com/wikimedia/mediawiki-services-cxserver/blob/master/lib/lineardoc/Doc.js#L459