Skip to content

[feat] Pulsar Admin Client should support PIP-234 PulsarClientSharedResources for event loop, timer and DNS resolver sharing #24796

@lhotari

Description

@lhotari

Search before reporting

  • I searched in the issues and found nothing similar.

Motivation

Pulsar Admin client creates it's own AsyncHttpClient with a Netty event loop, timer and DNS resolver and cache. In use cases where it is desired to reduce resource usage and share the DNS settings in the admin client, it would be useful if the Pulsar Admin client would also support PulsarClientSharedResources. PIP-234 implementation #24790 adds support for sharing thread pools and DNS resolver/cache across multiple client instances with PulsarClientSharedResources API.

Solution

Adding sharedResources to the builder and using the resources for the AsyncHttpClient instance.

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions