Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /limit_request_rate /eozoo_zoo.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Entity", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client sends requests to @AccessLimit-annotated endpoints; callers are outside the repo. Archetype HelloClient/HelloController templates do not use @AccessLimit, and tests are excluded." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "limitRequest", | |
| "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimitAcpect.java", | |
| "lines": "71", | |
| "notes": "@Before advice in AspectJ aspect AccessLimitAcpect (pointcut limitPoint, line 60) intercepts @AccessLimit controller methods, builds the limit key from app name + URI (+ IP/user/SpEL key), calls accessLimiter.throughLimit at line 107 and on rejection sets Retry-After and throws HttpHintException TOO_MANY_REQUESTS (lines 112-119)." | |
| }, | |
| { | |
| "role": "Limiter", | |
| "status": "present", | |
| "symbol": "throughLimit", | |
| "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/RedisAccessLimiter.java", | |
| "lines": "50", | |
| "notes": "Reached from limitRequest AccessLimitAcpect.java:107; RedisAccessLimiter.throughLimit runs a sliding-window Lua script (LUA_SCRIPT, line 29) and returns allow if the result > 0. Chosen as the bean created by RedisAccessLimiterConfiguration.java:36 whenever Redis is on the classpath (no property needed); fallback GuavaAccessLimiter.throughLimit (GuavaAccessLimiter.java:30, Guava RateLimiter.tryAcquire token bucket) is used only when no StringRedisHelper bean exists." | |
| }, | |
| { | |
| "role": "HistoryProvider", | |
| "status": "present", | |
| "symbol": "luaExec", | |
| "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/helper/redis/StringRedisHelper.java", | |
| "lines": "187", | |
| "notes": "Called from throughLimit RedisAccessLimiter.java:51; luaExec executes the repo's LUA_SCRIPT (RedisAccessLimiter.java:29) via StringRedisTemplate.execute (line 191), which reads the per-key Redis sorted set of request timestamps (ZREMRANGEBYSCORE/ZCARD = get history) and records the allowed request (ZADD/PEXPIRE = update). Storage itself is the external Redis server; the history logic is declared in-repo." | |
| }, | |
| { | |
| "role": "PolicyProvider", | |
| "status": "present", | |
| "symbol": "AccessLimit", | |
| "file": "zoo-framework/src/main/java/com/cowave/zoo/framework/access/limit/AccessLimit.java", | |
| "lines": "31", | |
| "notes": "Policy comes from the @AccessLimit annotation read by limitRequest via method.getAnnotation (AccessLimitAcpect.java:74) and passed as period()/limits() (AccessLimit.java:36/41) to throughLimit at AccessLimitAcpect.java:107. Cited the annotation type because the policy is split across its elements (period, limits, keying flags) and no single method retrieves it." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "zoo-framework is a library/starter: no production controller in the repo carries @AccessLimit (grep over the whole repo, including archetype HelloController templates), so no protected handler is reached after limitRequest." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 3.27 kB
- Xet hash:
- fa9b8cee8b6b48ce5c44264502278c7caaa6ac7d81295c944ac2a21982e98623
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.