Implement proper rate limiter for IGDB API calls

This commit is contained in:
grimsi
2025-07-11 20:13:03 +02:00
parent c3a62fa8bb
commit da47781b16
3 changed files with 41 additions and 20 deletions
+13
View File
@@ -1,3 +1,5 @@
val resilience4jVersion = "2.2.0"
plugins {
id("com.google.devtools.ksp")
}
@@ -8,6 +10,17 @@ dependencies {
// IGDB API client
implementation("io.github.husnjak:igdb-api-jvm:1.3.1")
// Resilience4j for rate limiting
implementation("io.github.resilience4j:resilience4j-ratelimiter:${resilience4jVersion}") {
exclude(group = "org.slf4j")
}
implementation("io.github.resilience4j:resilience4j-bulkhead:${resilience4jVersion}") {
exclude(group = "org.slf4j")
}
implementation("io.github.resilience4j:resilience4j-all:${resilience4jVersion}") {
exclude(group = "org.slf4j")
}
// Fuzzy string matching
implementation("me.xdrop:fuzzywuzzy:1.4.0")
}