:octagonal_sign: Hi does anyone have any good exam...
# announcements
c
🛑 Hi does anyone have any good examples of throttling in a REST Api. Extra points if is a http4k based API. 🙏 Server side.
t
Client or server side?
c
Server side
t
Throttling requests to other services or requests coming in?
c
Requests coming in
t
Ideally you would put that in your load balancer
c
Sorry, I am a bit new to the field but what would be the difference?
t
Your load balancer is designed to handle it and can reject the request before it even gets to your backend service.
At a very high level - when you want to limit the amount of requests coming in, you want to do it as close the source as possible, working on the assumption that as you move through your stack, it gets more expensive
c
Do you know any good examples of load balancing in kotlin?
t
You would typically have something else to do that for you - e.g. in AWS you might use an ALB
If you’re managing your own stuff, something like nginx
c
aha, ok.
Thank you so much Colin, relly usefull imput.
really*
t
np - shout if you need more
c
Hei Colin, do you have any resources to see how i can get the certificate from a request?
I am ussing http4k
t
no idea I’m afraid, I don’t use that
c
Or in general?
I am looking for an example of 2 way ssl in kotlin
t
afraid not, but you could ask in #C0B8RC352