-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
So how you would approach this depends a bit on your needs. Have you had a look at Uber's rate limiter (https://github.com/uber-go/ratelimit)? You can use an interface to model your API struct, then create a new struct implementing the abovementioned interface, embed the rate limiter in the new struct and call its take method as the first instruction in each implementing function. Follow it with a call to the original function in you old embedded struct. Replace your old struct if you want rate-limiting on et voilà.
There’s a talk from the last GopherCon where the speaker discussed the concept of client decorators for things such as client side rate limiting: https://github.com/tflyons/httpx/tree/main/gophercon22
Related posts
-
Simulating trades based on support/resistance with Golang!
-
A Go framework for building AI/LLM applications
-
ArgoCD: Use of Risky or Missing Cryptographic Algorithms in Redis Cache
-
Show HN: YouValidateMe HTTP server that validates JSON data against JSON schemas
-
Buildkite Agent Bug - fork/exec ... operation not permitted