-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Description
In pulsar, each topic is handled by a broker. Therefore, for creating, updating and deleting topics, requests will be sent to any broker. If the broker finds that it cannot handle the request of this topic, it will return a 307 and redirect it to the correct broker. In pulsar-manager, the current redirection is handled by the front end. There are some unreasonable points in this:
- Expose too much information for the front end
- sometimes the address of load balance cannot be obtained in k8s deployment.
Therefore, consider the following optimization method
-
spring boot takes over zuul's route forwarding. After acquiring the topic, it directly calculates the correct broker address and forwards the request to it.
-
Introduce pulsar-proxy dependency and make some improvements to process 307 requests