Git Product home page Git Product logo

Comments (6)

krapie avatar krapie commented on September 3, 2024 2

@hackerwins Since we are using Istio in K8s, we can use Istio(envoy)'s Rate Limit

For implementation details, we use istio-ingressgateway as a rate limiter middleware by applying the rate limit configuration envoyfilter, and rate limiting service as a rate limit counter.

from yorkie.

g2hhh2ee avatar g2hhh2ee commented on September 3, 2024 1

Sorry about that. It wasn't a DDos attack and I think it was my fault. 🥲

I created a new yorkie example around 3:00 on the 27th and ran it locally with yorkie-js-sdk v.0.4.5.
As soon as I ran the project with the new version, it kept sending requests to the server. I freaked out, stopped and ran it again, and the same thing happened, so I captured it.

스크린샷 2023-07-27 오후 3 42 22

from yorkie.

dc7303 avatar dc7303 commented on September 3, 2024 1

It may be possible to respond at the infrastructure layer to defend against DDOS, but I think it is necessary to respond at the application level before that. How about introducing RateLimit?

from yorkie.

hackerwins avatar hackerwins commented on September 3, 2024 1

I think we can introduce rate limits in a couple of places:

A. K8s Ingress

We can utilize rate limit annotations for a straightforward implementation. However, it's important to note that this approach offers global-wide options, which might limit flexibility.

B. API Server

To have more granular control, we can implement rate limit logic using a gRPC interceptor. This approach allows us to define detailed rate limit rules. Additionally, we could provide project-specific options in the dashboard, empowering developers to manage rate limits for their projects effectively.

@krapie Do you have any opinion for A?

from yorkie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.