Skip to content

Handle broker 307 redirect #274

@tuteng

Description

@tuteng

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:

  1. Expose too much information for the front end
  2. sometimes the address of load balance cannot be obtained in k8s deployment.

Therefore, consider the following optimization method

  1. 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.

  2. Introduce pulsar-proxy dependency and make some improvements to process 307 requests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions