You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(distance): use plugin store for cache, budget #21
tes.routing.distance caches geolocations per process (TtlCache), and with its opt-in dbip provider it can't cap lookups per user. Users who submit many tasks can use up DB-IP's free daily quota (500 requests); distance routing then stops applying until the quota resets.
Proposal
Use ctx.store (FOCA plugin store) for the geolocation cache instead of the per-process TtlCache, so all workers and replicas share it.
Add a per-user daily DB-IP budget with ctx.store.increment(key, ttl=86400, limit=n) (fixed window), keyed by a hash of the principal, never the raw user id; n configurable.
Declare data_stored (once available) and update the plugin docs.
Bump the FOCA requirement to the release that contains the store.
Done when
the plugin uses the shared store for its cache and budget, documented and tested (100% coverage).
Activity
build(deps): bump dnspython to 2.9.2