apache / apache/shenyu

[Question] Can I use RateLimiter with my Spring Cloud Gateway?

Open
#5,440 0 comments 0 reactions 0 assignees View on GitHub
type: question
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Question

I want to use ShenYu RateLimiter with my Spring Cloud Gateway.
I tried, but springCloud proxy wasn't applied.
Thank you for your reply.

```
// application.yml

server:
port: 8000

spring:
application:
name: springCloudTest
cloud:
gateway:
routes:
- id: first-service
uri: http://localhost:8083/
predicates:
- Path=/first-service/**
- id: second-service
uri: http://localhost:8084/
predicates:
- Path=/second-service/**

shenyu:
register:
registerType: http
serverLists: http://localhost:9095
props:
username: admin
password: 123456
client:
springCloud:
props:
contextPath: /spring
addPrefixed: false
```

![image](https://github.com/apache/shenyu/assets/109272360/61095466-7016-4afd-bc1b-86a158bdc310)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Spring Cloud Gateway routes and the shenyu.client.springCloud configuration shown in application.yml, then inspect how RateLimiter is expected to interact with the Spring Cloud proxy. Reproduce the missing proxy behavior using the two configured routes and determine the expected result; the issue provides no tests or source files to identify.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.