onceMisery commented on issue #25235: URL: https://github.com/apache/pulsar/issues/25235#issuecomment-3956653924
@david-streamlio Helloļ¼I have some implementation details that I need your help to confirm. ### Server-side Filtering Add a state query parameter to the Worker REST endpoint. The server performs filtering and returns the result. This involves a single API call and delivers optimal performance, but requires changes to the API interface, Worker implementation, and REST endpoint. ### Client-side Filtering The CLI layer first retrieves the function list, then queries the status one by one for filtering. No server-side changes are needed, but it results in N+1 API calls, which is slow under large namespaces. ### Hybrid Approach Add a new server-side API for batch status retrieval (e.g., listFunctionsWithStatus). The CLI fetches all functions and their statuses in one call, then performs filtering and formatting on the client side. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
