...
lease_pid_request => topic partition pid
Response:
lease_pid_response => error pid generation sequence_number expire_ms
These requests This request could also have a batch version for handling multiple partitions at once, but I described the single partition case for simplicity.
There are several intended uses for this API:
...
Instead this proposal assumes the cluster will have some configured period of disuse after fixed lifetime for pids from the point of issuance after which a pid is available for reuse. It would also be possible to allow clients to define custom expirations in their lease_pid request but that would require a more complex implementation as all replications would have to know about each expiration. The server will issue pids approximately in order so reuse will only actually occur after 4 billion pids have been issued.
...