https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • c

    Crazy Rabbit

    02/15/2023, 2:27 PM
    So basically really fast key-value store like Redis installed locally?
  • h

    HardAtWork

    02/15/2023, 2:28 PM
    DOs read from within datacenter, but they aren’t in every datacenter
  • c

    Crazy Rabbit

    02/15/2023, 2:29 PM
    🤔
  • c

    Crazy Rabbit

    02/15/2023, 2:30 PM
    Why aren't in every datacenter? So writes and reads could be fast everywhere?
  • h

    HardAtWork

    02/15/2023, 2:32 PM
    Because they are fault tolerant, and require a fair bit of storage
  • c

    Crazy Rabbit

    02/15/2023, 2:38 PM
    yeah for api call limiter fault tolerance really doesn't matter.
  • c

    Crazy Rabbit

    02/15/2023, 2:38 PM
    So Cloudflare could make something even cheaper with less resources.
  • c

    Crazy Rabbit

    02/15/2023, 2:38 PM
    for api call limiter
  • h

    HardAtWork

    02/15/2023, 2:38 PM
    Whispers CF Managed Ratelimiting
  • c

    Crazy Rabbit

    02/15/2023, 2:40 PM
    This is only used to reduce / eliminate big attacks in the short period of time like 10 seconds, 1 minute.
  • c

    Crazy Rabbit

    02/15/2023, 2:40 PM
    it's almost necessary to also have in application rate limiter.
  • c

    Crazy Rabbit

    02/15/2023, 2:41 PM
    so you have more control when limiting the user.
  • h

    HardAtWork

    02/15/2023, 2:41 PM
    The paid rate limiting should also support based on API keys
  • h

    HardAtWork

    02/15/2023, 2:42 PM
    Or based on cookies, or other stuff
  • c

    Crazy Rabbit

    02/15/2023, 2:42 PM
    for example if one user respect api rate limiter 5 requests per 10 seconds, but he can also always request results from random uncached query in order to increase my expenses.
  • c

    Crazy Rabbit

    02/15/2023, 2:42 PM
    so for this user I can rate limit him on application level.
  • c

    Crazy Rabbit

    02/15/2023, 2:42 PM
    as he is abusing the service even tho he is within general rate limit.
  • c

    Crazy Rabbit

    02/15/2023, 2:43 PM
    Kinda like slowly brute forcing within api rate limiter
  • h

    HardAtWork

    02/15/2023, 2:43 PM
    I mean, you shouldn’t be billing your customers based on whether an object is cached or not
  • h

    HardAtWork

    02/15/2023, 2:43 PM
    Or limiting them
  • c

    Crazy Rabbit

    02/15/2023, 2:45 PM
    I can make the bot that will 24/7 send 5 requests every 10 seconds (Within API rate limiter) but requests searches from random queries like:
    Copy code
    jNyp9PwRpnxNb2AsZaT3
    82H3HmCYprB5hwC75c2j
    5JaTC4JWXsEWMFV4GAVQ
    B9fPabUnN6q3S6xj5j7E
    ....
  • c

    Crazy Rabbit

    02/15/2023, 2:45 PM
    and Bing API costs $3 per 1000 requests.
  • h

    HardAtWork

    02/15/2023, 2:46 PM
    With Advanced Rate-limiting, you can always add another system to lock if the user requests too many times an hour
  • h

    HardAtWork

    02/15/2023, 2:46 PM
    And if you have good logging, and you notice someone is constantly requesting fully random assets like that, you could issue a manual ban
  • h

    HardAtWork

    02/15/2023, 2:47 PM
    But also, why are you caching search results?
  • c

    Crazy Rabbit

    02/15/2023, 2:48 PM
    Because they cost $3 per 1000 search requests.
  • c

    Crazy Rabbit

    02/15/2023, 2:48 PM
    and I bet most people searches for the same queries like cloudflare, discord
  • c

    Crazy Rabbit

    02/15/2023, 2:48 PM
    this would reduce my expenses by a lot.
  • d

    Dani Foldi

    02/15/2023, 2:48 PM
    And more often than not I'm looking for newish results
  • h

    HardAtWork

    02/15/2023, 2:49 PM
    I mean, not really. The people looking for a non-Google alternative search engine probably don’t need search to find a heavily-trafficked website like Discord
1...227422752276...2509Latest