Hello @Suero,
This entirely depends on the dependencies that you need. You can mix usage of the JS and Go runtimes, so you could implement your rate-limiting before hooks in Go instead, but despite my previous suggestion, I still think this should be done by a load balancer.
Can you elaborate on the motivation for having to implement rate-limiting at the server level?
Best.