diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.ts index d4834a1..29b14f8 100644 --- a/apps/api/src/services/rate-limiter.ts +++ b/apps/api/src/services/rate-limiter.ts @@ -2,21 +2,21 @@ import { RateLimiterRedis } from "rate-limiter-flexible"; import * as redis from "redis"; import { RateLimiterMode } from "../../src/types"; -const MAX_CRAWLS_PER_MINUTE_STARTER = 2; -const MAX_CRAWLS_PER_MINUTE_STANDARD = 4; +const MAX_CRAWLS_PER_MINUTE_STARTER = 3; +const MAX_CRAWLS_PER_MINUTE_STANDARD = 5; const MAX_CRAWLS_PER_MINUTE_SCALE = 20; -const MAX_SCRAPES_PER_MINUTE_STARTER = 10; -const MAX_SCRAPES_PER_MINUTE_STANDARD = 15; -const MAX_SCRAPES_PER_MINUTE_SCALE = 30; +const MAX_SCRAPES_PER_MINUTE_STARTER = 20; +const MAX_SCRAPES_PER_MINUTE_STANDARD = 30; +const MAX_SCRAPES_PER_MINUTE_SCALE = 50; -const MAX_SEARCHES_PER_MINUTE_STARTER = 10; -const MAX_SEARCHES_PER_MINUTE_STANDARD = 15; -const MAX_SEARCHES_PER_MINUTE_SCALE = 30; +const MAX_SEARCHES_PER_MINUTE_STARTER = 20; +const MAX_SEARCHES_PER_MINUTE_STANDARD = 30; +const MAX_SEARCHES_PER_MINUTE_SCALE = 50; const MAX_REQUESTS_PER_MINUTE_PREVIEW = 5; const MAX_REQUESTS_PER_MINUTE_ACCOUNT = 20; -const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 120; +const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 150; export const redisClient = redis.createClient({ url: process.env.REDIS_URL,