gristlabs_grist-core/stubs/app
Alex Hall 2c9ae6dc94 (core) Enforce daily limit on API usage
Summary:
Keep track of the number of API requests made for this document today in redis. Uses local caches of the count and the document so that usually requests can proceed without waiting for redis or the database.

Moved the free standing function apiThrottle to become a method to avoid adding another layer of request handler callbacks.

Test Plan: Added a DocApi test

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D3327
2022-03-22 00:22:45 +02:00
..
client/ui (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00
common (core) more grist-core cleanup 2020-07-23 16:21:08 -04:00
server (core) Enforce daily limit on API usage 2022-03-22 00:22:45 +02:00
tsconfig.json (core) Migrate to SRP and add change password dialog 2022-03-16 21:35:06 -07:00