Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

There are two types of requests:

Sumit Rawal answered on June 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • python requests post set content type
  • types of html requests

  • There are two types of requests:

    0

    There are two types of requests:

    Produce Requests: These requests are initiated by producers and consist of messages that producers want to write to a Kafka topic.

    Fetch Requests: These requests are initiated by consumers or follower replicas and ask for messages in a topic.

    As described earlier, all produce and fetch requests against a partition must be sent to the broker that acts as the partition leader for that partition. If requests are directed to a broker that isn’t the partition leader, the client will receive an error saying “the broker isn’t the partition leader”. This brings up the question of how clients know which broker is the partition leader for which partition?

    Clients send another request called the metadata request which consists of topics a client is interested in. The server responds with a list of partitions for each topic, the partition replicas, and the partition leaders. Making the metadata request before every produce or fetch request can be taxing on the system, so clients cache the metadata information. Clients will refresh the metadata information after every meta data.max.age.ms milliseconds or when they receive a “not partition leader” error signaling that the metadata information has changed.

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: types whatever
    Link to this answer
    Share Copy Link
    Contributed on Jun 01 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.