You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by Sijie Guo <gu...@gmail.com> on 2019/02/11 05:57:37 UTC

[DISCUSS] PIP 29: One package for both pulsar client and pulsar admin

Hi all,

Currently we are shipping `pulsar-client` and `pulsar-client-admin`
separately. They are both
shaded packages. It is quite common to see applications using both
`pulsar-client` and
`pulsar-client-admin`. These applications will have redundant shaded
classes in both
`pulsar-client` and `pulsar-client-admin`. Sometimes it also caused
troubles when we introduced new dependencies but forgot to update shading
rules.

So I am creating a new PIP to propose adding a new module
`pulsar-client-all`, which will include both `pulsar-client-original` and
`pulsar-client-admin-original`, and shade the dependencies all together.
This would reduce the size of dependencies for applications uses both
`pulsar-client` and `pulsar-client-admin`.

Here is the link for PIP-29:
https://github.com/apache/pulsar/wiki/PIP-29:-One-package-for-both-pulsar-client-and-pulsar-admin

Let me know what you think.

Thanks,
Sijie

Re: [DISCUSS] PIP 29: One package for both pulsar client and pulsar admin

Posted by Matteo Merli <ma...@gmail.com>.
If the size difference is not that much, we could include that in
`pulsar-client` too. (Perhaps moving the API part into
`pulsar-client-api` as well.


--
Matteo Merli
<ma...@gmail.com>

On Sun, Feb 10, 2019 at 10:51 PM Enrico Olivelli <eo...@gmail.com> wrote:
>
> As a new user I find this a great idea.
> For the future I will be happy to see the admin API to be able to connect
> to the binary endpoint and not to the http one.
>
> Cheers
> Enrico
>
> Il giorno lun 11 feb 2019, 07:03 Sijie Guo <gu...@gmail.com> ha scritto:
>
> > Hi all,
> >
> > Currently we are shipping `pulsar-client` and `pulsar-client-admin`
> > separately. They are both
> > shaded packages. It is quite common to see applications using both
> > `pulsar-client` and
> > `pulsar-client-admin`. These applications will have redundant shaded
> > classes in both
> > `pulsar-client` and `pulsar-client-admin`. Sometimes it also caused
> > troubles when we introduced new dependencies but forgot to update shading
> > rules.
> >
> > So I am creating a new PIP to propose adding a new module
> > `pulsar-client-all`, which will include both `pulsar-client-original` and
> > `pulsar-client-admin-original`, and shade the dependencies all together.
> > This would reduce the size of dependencies for applications uses both
> > `pulsar-client` and `pulsar-client-admin`.
> >
> > Here is the link for PIP-29:
> >
> > https://github.com/apache/pulsar/wiki/PIP-29:-One-package-for-both-pulsar-client-and-pulsar-admin
> >
> > Let me know what you think.
> >
> > Thanks,
> > Sijie
> >

Re: [DISCUSS] PIP 29: One package for both pulsar client and pulsar admin

Posted by Enrico Olivelli <eo...@gmail.com>.
As a new user I find this a great idea.
For the future I will be happy to see the admin API to be able to connect
to the binary endpoint and not to the http one.

Cheers
Enrico

Il giorno lun 11 feb 2019, 07:03 Sijie Guo <gu...@gmail.com> ha scritto:

> Hi all,
>
> Currently we are shipping `pulsar-client` and `pulsar-client-admin`
> separately. They are both
> shaded packages. It is quite common to see applications using both
> `pulsar-client` and
> `pulsar-client-admin`. These applications will have redundant shaded
> classes in both
> `pulsar-client` and `pulsar-client-admin`. Sometimes it also caused
> troubles when we introduced new dependencies but forgot to update shading
> rules.
>
> So I am creating a new PIP to propose adding a new module
> `pulsar-client-all`, which will include both `pulsar-client-original` and
> `pulsar-client-admin-original`, and shade the dependencies all together.
> This would reduce the size of dependencies for applications uses both
> `pulsar-client` and `pulsar-client-admin`.
>
> Here is the link for PIP-29:
>
> https://github.com/apache/pulsar/wiki/PIP-29:-One-package-for-both-pulsar-client-and-pulsar-admin
>
> Let me know what you think.
>
> Thanks,
> Sijie
>