You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Denovo1998 (via GitHub)" <gi...@apache.org> on 2024/10/09 14:47:55 UTC
[PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Denovo1998 opened a new pull request, #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8
<!--
### Contribution Checklist
- PR title format should be *[type][component] summary*. For details, see *[Guideline - Pulsar PR Naming Convention](https://pulsar.apache.org/contribute/develop-semantic-title/)*.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
-->
<!-- Either this PR fixes an issue, -->
<!-- If the PR belongs to a PIP, please add the PIP link here -->
### Motivation
As we known,Pulsar's current asynchronous publish-subscribe model serves well for decoupled message distribution, but it lacks a native mechanism for handling synchronous interactions typical of Remote Procedure Calls (RPC).
This request-reply model can greatly enhance the utility of Pulsar. We can then use Pulsar as a distributed RPC Framework. This also improves the fault tolerance of RPC calls.
PIP-371 is also committed to building such a model.
https://github.com/apache/pulsar/pull/23143
https://github.com/apache/pulsar/pull/23194
But we need to implement this distributed RPC framework in a way that does not intrude into the pulsar core library. Therefore, we need to use two topics, one is the request topic and the other is the reply topic. The client side sends RPC requests to the request topic, the server side receives request message and performs customized processing, and finally sends them to the reply topic. The client receives the reply message and returns.
### Modifications
<!-- Describe the modifications you've done. -->
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
*(Please pick either of the following options)*
This change is a trivial rework / code cleanup without any test coverage.
*(or)*
This change is already covered by existing tests, such as *(please describe tests)*.
*(or)*
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end deployment with large payloads (10MB)*
- *Extended integration test for recovery after broker failure*
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by SiNan Liu <li...@gmail.com>.
I think PCIP is needed for important features. If it is relatively small
and simple to extend the plugin, only need to supplement the documentation.
Personal projects require a `README.md` file to introduce the project. PCIP
is the same.
Thanks,
sinan
Dave Fisher <wa...@apache.org> 于2024年10月18日周五 21:51写道:
> My concern is about having a formal process that requires an approval
> vote. I consider that as slowing or blocking ideas. To me the whole reason
> to have the contributor repository is to unblock development of new ideas.
>
> > On Oct 17, 2024, at 6:04 PM, lushiji(apache) <lu...@apache.org> wrote:
> >
> > Then I will initiate a formal PCIP submission process so that everyone
> can
> > know or give feedback.
> > Do you think it is okay? Dave
> >
> > On Wed, Oct 16, 2024 at 10:31 AM xiangying meng <xi...@apache.org>
> > wrote:
> >
> >> IMO,It is necessary to make it known for important features.
> >> As for PCIP, a clear PCIP can help later generations better understand
> >> and maintain this feature. It can also help users better learn to use
> >> this feature without having to look through the code.
> >> But this does not mean that a vote is needed. I wonder if it can be
> >> carried out after being known for a period of time and there is no
> >> objection?
> >>
> >> On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org>
> >> wrote:
> >>>
> >>> The current PCIP is an open discussion. If I am wrong, please correct
> me.
> >>> Thank you.
> >>>
> >>> Your suggestion is very good. Pulsar-java-contrib is an open
> repository.
> >>> I am not sure about the necessity of PCIP. The original idea of
> building
> >>> this PCIP is to make some larger Improvement Proposals known to the
> >> Pulsar
> >>> community to prevent the project from being deformed.
> >>>
> >>> If the PCIP process is simplified to just make developers of the Pulsar
> >>> community known, do you think it is necessary?
> >>>
> >>> On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
> >>>
> >>>> This is in no way a comment about the proposed work. In fact that work
> >>>> should proceed.
> >>>>
> >>>> This is about what looks like extraneous process. I thought that the
> >>>> purpose of this new repository was to streamline and ease the
> >> development
> >>>> of new ideas and contributions. Adding a new PCIP process seems to be
> >>>> contrary to this purpose.
> >>>>
> >>>> Best,
> >>>> Dave
> >>>>
> >>>>> On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <git@apache.org
> >>>
> >>>> wrote:
> >>>>>
> >>>>>
> >>>>> Denovo1998 commented on code in PR #8:
> >>>>> URL:
> >>>>
> >>
> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
> >>>>>
> >>>>>
> >>>>> ##########
> >>>>> pcip/TEMPLATE.md:
> >>>>> ##########
> >>>>> @@ -0,0 +1,142 @@
> >>>>> +<!--
> >>>>>
> >>>>> Review Comment:
> >>>>> Added in https://github.com/apache/pulsar-java-contrib/pull/9.
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> 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: commits-unsubscribe@pulsar.apache.org
> >>>>>
> >>>>> For queries about this service, please contact Infrastructure at:
> >>>>> users@infra.apache.org
> >>>>>
> >>>>
> >>>>
> >>
>
>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "lushiji(apache)" <lu...@apache.org>.
I have added the development process for pulsar-java-contrib
there is no need to send emails for DISCUSSION and VOTE, it can be
summarized as follows:
1. for simple changes, you only need to submit a PR for code changes
2. for larger improvement proposal, you need to submit a PR for code
changes + a design document (the file is placed in pcip/pcip-xxx.md)
For detailed development process description, please review the pr
https://github.com/apache/pulsar-java-contrib/pull/10
On Sun, Oct 20, 2024 at 5:39 AM lushiji(apache) <lu...@apache.org> wrote:
> Well, no problem, this project is freedom, allowing Contributors to
> maintain rapid iteration;
>
> If there is a discussion among developers, discuss it directly on PR, but
> if there is a scenario where it is impossible to reach a real consensus or
> there are disagreements, then initiate a mail vote;
> Otherwise, ordinary PRs and PCIPs can be submitted and merged directly
> through PR, without the need for mail voting or notification.
>
> What do you think? If possible, let's initiate a vote on this point of view
>
> On Fri, Oct 18, 2024 at 9:47 PM Dave Fisher <wa...@apache.org> wrote:
>
>> My concern is about having a formal process that requires an approval
>> vote. I consider that as slowing or blocking ideas. To me the whole reason
>> to have the contributor repository is to unblock development of new ideas.
>>
>> > On Oct 17, 2024, at 6:04 PM, lushiji(apache) <lu...@apache.org>
>> wrote:
>> >
>> > Then I will initiate a formal PCIP submission process so that everyone
>> can
>> > know or give feedback.
>> > Do you think it is okay? Dave
>> >
>> > On Wed, Oct 16, 2024 at 10:31 AM xiangying meng <xi...@apache.org>
>> > wrote:
>> >
>> >> IMO,It is necessary to make it known for important features.
>> >> As for PCIP, a clear PCIP can help later generations better understand
>> >> and maintain this feature. It can also help users better learn to use
>> >> this feature without having to look through the code.
>> >> But this does not mean that a vote is needed. I wonder if it can be
>> >> carried out after being known for a period of time and there is no
>> >> objection?
>> >>
>> >> On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org>
>> >> wrote:
>> >>>
>> >>> The current PCIP is an open discussion. If I am wrong, please correct
>> me.
>> >>> Thank you.
>> >>>
>> >>> Your suggestion is very good. Pulsar-java-contrib is an open
>> repository.
>> >>> I am not sure about the necessity of PCIP. The original idea of
>> building
>> >>> this PCIP is to make some larger Improvement Proposals known to the
>> >> Pulsar
>> >>> community to prevent the project from being deformed.
>> >>>
>> >>> If the PCIP process is simplified to just make developers of the
>> Pulsar
>> >>> community known, do you think it is necessary?
>> >>>
>> >>> On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
>> >>>
>> >>>> This is in no way a comment about the proposed work. In fact that
>> work
>> >>>> should proceed.
>> >>>>
>> >>>> This is about what looks like extraneous process. I thought that the
>> >>>> purpose of this new repository was to streamline and ease the
>> >> development
>> >>>> of new ideas and contributions. Adding a new PCIP process seems to be
>> >>>> contrary to this purpose.
>> >>>>
>> >>>> Best,
>> >>>> Dave
>> >>>>
>> >>>>> On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <
>> git@apache.org
>> >>>
>> >>>> wrote:
>> >>>>>
>> >>>>>
>> >>>>> Denovo1998 commented on code in PR #8:
>> >>>>> URL:
>> >>>>
>> >>
>> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
>> >>>>>
>> >>>>>
>> >>>>> ##########
>> >>>>> pcip/TEMPLATE.md:
>> >>>>> ##########
>> >>>>> @@ -0,0 +1,142 @@
>> >>>>> +<!--
>> >>>>>
>> >>>>> Review Comment:
>> >>>>> Added in https://github.com/apache/pulsar-java-contrib/pull/9.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> 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: commits-unsubscribe@pulsar.apache.org
>> >>>>>
>> >>>>> For queries about this service, please contact Infrastructure at:
>> >>>>> users@infra.apache.org
>> >>>>>
>> >>>>
>> >>>>
>> >>
>>
>>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "lushiji(apache)" <lu...@apache.org>.
Well, no problem, this project is freedom, allowing Contributors to
maintain rapid iteration;
If there is a discussion among developers, discuss it directly on PR, but
if there is a scenario where it is impossible to reach a real consensus or
there are disagreements, then initiate a mail vote;
Otherwise, ordinary PRs and PCIPs can be submitted and merged directly
through PR, without the need for mail voting or notification.
What do you think? If possible, let's initiate a vote on this point of view
On Fri, Oct 18, 2024 at 9:47 PM Dave Fisher <wa...@apache.org> wrote:
> My concern is about having a formal process that requires an approval
> vote. I consider that as slowing or blocking ideas. To me the whole reason
> to have the contributor repository is to unblock development of new ideas.
>
> > On Oct 17, 2024, at 6:04 PM, lushiji(apache) <lu...@apache.org> wrote:
> >
> > Then I will initiate a formal PCIP submission process so that everyone
> can
> > know or give feedback.
> > Do you think it is okay? Dave
> >
> > On Wed, Oct 16, 2024 at 10:31 AM xiangying meng <xi...@apache.org>
> > wrote:
> >
> >> IMO,It is necessary to make it known for important features.
> >> As for PCIP, a clear PCIP can help later generations better understand
> >> and maintain this feature. It can also help users better learn to use
> >> this feature without having to look through the code.
> >> But this does not mean that a vote is needed. I wonder if it can be
> >> carried out after being known for a period of time and there is no
> >> objection?
> >>
> >> On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org>
> >> wrote:
> >>>
> >>> The current PCIP is an open discussion. If I am wrong, please correct
> me.
> >>> Thank you.
> >>>
> >>> Your suggestion is very good. Pulsar-java-contrib is an open
> repository.
> >>> I am not sure about the necessity of PCIP. The original idea of
> building
> >>> this PCIP is to make some larger Improvement Proposals known to the
> >> Pulsar
> >>> community to prevent the project from being deformed.
> >>>
> >>> If the PCIP process is simplified to just make developers of the Pulsar
> >>> community known, do you think it is necessary?
> >>>
> >>> On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
> >>>
> >>>> This is in no way a comment about the proposed work. In fact that work
> >>>> should proceed.
> >>>>
> >>>> This is about what looks like extraneous process. I thought that the
> >>>> purpose of this new repository was to streamline and ease the
> >> development
> >>>> of new ideas and contributions. Adding a new PCIP process seems to be
> >>>> contrary to this purpose.
> >>>>
> >>>> Best,
> >>>> Dave
> >>>>
> >>>>> On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <git@apache.org
> >>>
> >>>> wrote:
> >>>>>
> >>>>>
> >>>>> Denovo1998 commented on code in PR #8:
> >>>>> URL:
> >>>>
> >>
> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
> >>>>>
> >>>>>
> >>>>> ##########
> >>>>> pcip/TEMPLATE.md:
> >>>>> ##########
> >>>>> @@ -0,0 +1,142 @@
> >>>>> +<!--
> >>>>>
> >>>>> Review Comment:
> >>>>> Added in https://github.com/apache/pulsar-java-contrib/pull/9.
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> 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: commits-unsubscribe@pulsar.apache.org
> >>>>>
> >>>>> For queries about this service, please contact Infrastructure at:
> >>>>> users@infra.apache.org
> >>>>>
> >>>>
> >>>>
> >>
>
>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by Dave Fisher <wa...@apache.org>.
My concern is about having a formal process that requires an approval vote. I consider that as slowing or blocking ideas. To me the whole reason to have the contributor repository is to unblock development of new ideas.
> On Oct 17, 2024, at 6:04 PM, lushiji(apache) <lu...@apache.org> wrote:
>
> Then I will initiate a formal PCIP submission process so that everyone can
> know or give feedback.
> Do you think it is okay? Dave
>
> On Wed, Oct 16, 2024 at 10:31 AM xiangying meng <xi...@apache.org>
> wrote:
>
>> IMO,It is necessary to make it known for important features.
>> As for PCIP, a clear PCIP can help later generations better understand
>> and maintain this feature. It can also help users better learn to use
>> this feature without having to look through the code.
>> But this does not mean that a vote is needed. I wonder if it can be
>> carried out after being known for a period of time and there is no
>> objection?
>>
>> On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org>
>> wrote:
>>>
>>> The current PCIP is an open discussion. If I am wrong, please correct me.
>>> Thank you.
>>>
>>> Your suggestion is very good. Pulsar-java-contrib is an open repository.
>>> I am not sure about the necessity of PCIP. The original idea of building
>>> this PCIP is to make some larger Improvement Proposals known to the
>> Pulsar
>>> community to prevent the project from being deformed.
>>>
>>> If the PCIP process is simplified to just make developers of the Pulsar
>>> community known, do you think it is necessary?
>>>
>>> On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
>>>
>>>> This is in no way a comment about the proposed work. In fact that work
>>>> should proceed.
>>>>
>>>> This is about what looks like extraneous process. I thought that the
>>>> purpose of this new repository was to streamline and ease the
>> development
>>>> of new ideas and contributions. Adding a new PCIP process seems to be
>>>> contrary to this purpose.
>>>>
>>>> Best,
>>>> Dave
>>>>
>>>>> On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <git@apache.org
>>>
>>>> wrote:
>>>>>
>>>>>
>>>>> Denovo1998 commented on code in PR #8:
>>>>> URL:
>>>>
>> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
>>>>>
>>>>>
>>>>> ##########
>>>>> pcip/TEMPLATE.md:
>>>>> ##########
>>>>> @@ -0,0 +1,142 @@
>>>>> +<!--
>>>>>
>>>>> Review Comment:
>>>>> Added in https://github.com/apache/pulsar-java-contrib/pull/9.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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: commits-unsubscribe@pulsar.apache.org
>>>>>
>>>>> For queries about this service, please contact Infrastructure at:
>>>>> users@infra.apache.org
>>>>>
>>>>
>>>>
>>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "lushiji(apache)" <lu...@apache.org>.
Then I will initiate a formal PCIP submission process so that everyone can
know or give feedback.
Do you think it is okay? Dave
On Wed, Oct 16, 2024 at 10:31 AM xiangying meng <xi...@apache.org>
wrote:
> IMO,It is necessary to make it known for important features.
> As for PCIP, a clear PCIP can help later generations better understand
> and maintain this feature. It can also help users better learn to use
> this feature without having to look through the code.
> But this does not mean that a vote is needed. I wonder if it can be
> carried out after being known for a period of time and there is no
> objection?
>
> On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org>
> wrote:
> >
> > The current PCIP is an open discussion. If I am wrong, please correct me.
> > Thank you.
> >
> > Your suggestion is very good. Pulsar-java-contrib is an open repository.
> > I am not sure about the necessity of PCIP. The original idea of building
> > this PCIP is to make some larger Improvement Proposals known to the
> Pulsar
> > community to prevent the project from being deformed.
> >
> > If the PCIP process is simplified to just make developers of the Pulsar
> > community known, do you think it is necessary?
> >
> > On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
> >
> > > This is in no way a comment about the proposed work. In fact that work
> > > should proceed.
> > >
> > > This is about what looks like extraneous process. I thought that the
> > > purpose of this new repository was to streamline and ease the
> development
> > > of new ideas and contributions. Adding a new PCIP process seems to be
> > > contrary to this purpose.
> > >
> > > Best,
> > > Dave
> > >
> > > > On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <git@apache.org
> >
> > > wrote:
> > > >
> > > >
> > > > Denovo1998 commented on code in PR #8:
> > > > URL:
> > >
> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
> > > >
> > > >
> > > > ##########
> > > > pcip/TEMPLATE.md:
> > > > ##########
> > > > @@ -0,0 +1,142 @@
> > > > +<!--
> > > >
> > > > Review Comment:
> > > > Added in https://github.com/apache/pulsar-java-contrib/pull/9.
> > > >
> > > >
> > > >
> > > > --
> > > > 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: commits-unsubscribe@pulsar.apache.org
> > > >
> > > > For queries about this service, please contact Infrastructure at:
> > > > users@infra.apache.org
> > > >
> > >
> > >
>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by xiangying meng <xi...@apache.org>.
IMO,It is necessary to make it known for important features.
As for PCIP, a clear PCIP can help later generations better understand
and maintain this feature. It can also help users better learn to use
this feature without having to look through the code.
But this does not mean that a vote is needed. I wonder if it can be
carried out after being known for a period of time and there is no
objection?
On Tue, Oct 15, 2024 at 10:20 AM lushiji(apache) <lu...@apache.org> wrote:
>
> The current PCIP is an open discussion. If I am wrong, please correct me.
> Thank you.
>
> Your suggestion is very good. Pulsar-java-contrib is an open repository.
> I am not sure about the necessity of PCIP. The original idea of building
> this PCIP is to make some larger Improvement Proposals known to the Pulsar
> community to prevent the project from being deformed.
>
> If the PCIP process is simplified to just make developers of the Pulsar
> community known, do you think it is necessary?
>
> On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
>
> > This is in no way a comment about the proposed work. In fact that work
> > should proceed.
> >
> > This is about what looks like extraneous process. I thought that the
> > purpose of this new repository was to streamline and ease the development
> > of new ideas and contributions. Adding a new PCIP process seems to be
> > contrary to this purpose.
> >
> > Best,
> > Dave
> >
> > > On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <gi...@apache.org>
> > wrote:
> > >
> > >
> > > Denovo1998 commented on code in PR #8:
> > > URL:
> > https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
> > >
> > >
> > > ##########
> > > pcip/TEMPLATE.md:
> > > ##########
> > > @@ -0,0 +1,142 @@
> > > +<!--
> > >
> > > Review Comment:
> > > Added in https://github.com/apache/pulsar-java-contrib/pull/9.
> > >
> > >
> > >
> > > --
> > > 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: commits-unsubscribe@pulsar.apache.org
> > >
> > > For queries about this service, please contact Infrastructure at:
> > > users@infra.apache.org
> > >
> >
> >
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "lushiji(apache)" <lu...@apache.org>.
The current PCIP is an open discussion. If I am wrong, please correct me.
Thank you.
Your suggestion is very good. Pulsar-java-contrib is an open repository.
I am not sure about the necessity of PCIP. The original idea of building
this PCIP is to make some larger Improvement Proposals known to the Pulsar
community to prevent the project from being deformed.
If the PCIP process is simplified to just make developers of the Pulsar
community known, do you think it is necessary?
On Sun, Oct 13, 2024 at 1:24 AM Dave Fisher <wa...@apache.org> wrote:
> This is in no way a comment about the proposed work. In fact that work
> should proceed.
>
> This is about what looks like extraneous process. I thought that the
> purpose of this new repository was to streamline and ease the development
> of new ideas and contributions. Adding a new PCIP process seems to be
> contrary to this purpose.
>
> Best,
> Dave
>
> > On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <gi...@apache.org>
> wrote:
> >
> >
> > Denovo1998 commented on code in PR #8:
> > URL:
> https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
> >
> >
> > ##########
> > pcip/TEMPLATE.md:
> > ##########
> > @@ -0,0 +1,142 @@
> > +<!--
> >
> > Review Comment:
> > Added in https://github.com/apache/pulsar-java-contrib/pull/9.
> >
> >
> >
> > --
> > 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: commits-unsubscribe@pulsar.apache.org
> >
> > For queries about this service, please contact Infrastructure at:
> > users@infra.apache.org
> >
>
>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by Dave Fisher <wa...@apache.org>.
This is in no way a comment about the proposed work. In fact that work should proceed.
This is about what looks like extraneous process. I thought that the purpose of this new repository was to streamline and ease the development of new ideas and contributions. Adding a new PCIP process seems to be contrary to this purpose.
Best,
Dave
> On Oct 12, 2024, at 5:24 AM, Denovo1998 (via GitHub) <gi...@apache.org> wrote:
>
>
> Denovo1998 commented on code in PR #8:
> URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
>
>
> ##########
> pcip/TEMPLATE.md:
> ##########
> @@ -0,0 +1,142 @@
> +<!--
>
> Review Comment:
> Added in https://github.com/apache/pulsar-java-contrib/pull/9.
>
>
>
> --
> 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: commits-unsubscribe@pulsar.apache.org
>
> For queries about this service, please contact Infrastructure at:
> users@infra.apache.org
>
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "Denovo1998 (via GitHub)" <gi...@apache.org>.
Denovo1998 commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797693657
##########
pcip/TEMPLATE.md:
##########
@@ -0,0 +1,142 @@
+<!--
Review Comment:
Added in https://github.com/apache/pulsar-java-contrib/pull/9.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "StevenLuMT (via GitHub)" <gi...@apache.org>.
StevenLuMT commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797520951
##########
pcip/pcip-1.md:
##########
@@ -0,0 +1,552 @@
+# PCIP-1: Distributed RPC framework implemented by the Pulsar client
+
+# Background knowledge
+
+## Request-Reply Synchronize Model
+
+In this model, the client sends a request and waits for a response from the server. The server receives the request, processes it, and sends back a response. This interaction pattern is fundamental in client-server communication and is crucial for synchronous operations where the client needs a response before proceeding.
+
+## Remote Procedure Call (RPC)
+
+RPC allows functions or procedures to be executed on a different machine from the client making the call, as if they were local. This method abstracts the complexities of network communication, allowing developers to focus on the business logic rather than the underlying network details.
+
+The implementation of RPC is usually based on the Request-Reply model. In this case:
+
+- The RPC client plays the role of the requester, calling a remote procedure as if it were sending a request message.
+- The RPC server plays the role of the responder, receiving the request, executing the procedure, and returning the result as a reply message.
+
+## Current behavior of sending messages in Pulsar
+
+The current sending behavior of Pulsar is when the message is successfully published, that is, successfully persisted to the storage layer. The MessageId assigned to the published message by the broker is returned.
+
+## Analogies of message flow in RPC and Pulsar
+
+- In Pulsar, producer is equivalent to RPC Client.
+- The RPC Client initiates a request like sending a message producer.
+- The RPC Server side receives this request as if the consumer receives the message and then carries out customized processing, and finally ACKs the message.
+- If this ACK request contains the result returned by the "server side" and is sent to the original producer(RPC Client).
+- After receiving the results returned by the consumer(RPC Server), the producer(RPC Client) directly returns the content of the results.
+
+# Motivation
+
Review Comment:
Can you post [the structure picture](https://github.com/apache/pulsar-java-contrib/pull/6) here?
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "Denovo1998 (via GitHub)" <gi...@apache.org>.
Denovo1998 closed pull request #8: Distributed RPC framework implemented by the Pulsar client
URL: https://github.com/apache/pulsar-java-contrib/pull/8
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "liangyepianzhou (via GitHub)" <gi...@apache.org>.
liangyepianzhou commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797611188
##########
pcip/TEMPLATE.md:
##########
@@ -0,0 +1,142 @@
+<!--
Review Comment:
Please submit a separate PR for this.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "AuroraTwinkle (via GitHub)" <gi...@apache.org>.
AuroraTwinkle commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1798809360
##########
pcip/pcip-1.md:
##########
@@ -0,0 +1,556 @@
+# PCIP-1: Distributed RPC framework implemented by the Pulsar client
+
+# Background knowledge
+
+## Request-Reply Synchronize Model
+
+In this model, the client sends a request and waits for a response from the server. The server receives the request, processes it, and sends back a response. This interaction pattern is fundamental in client-server communication and is crucial for synchronous operations where the client needs a response before proceeding.
+
+## Remote Procedure Call (RPC)
+
+RPC allows functions or procedures to be executed on a different machine from the client making the call, as if they were local. This method abstracts the complexities of network communication, allowing developers to focus on the business logic rather than the underlying network details.
+
+The implementation of RPC is usually based on the Request-Reply model. In this case:
+
+- The RPC client plays the role of the requester, calling a remote procedure as if it were sending a request message.
+- The RPC server plays the role of the responder, receiving the request, executing the procedure, and returning the result as a reply message.
+
+## Current behavior of sending messages in Pulsar
+
+The current sending behavior of Pulsar is when the message is successfully published, that is, successfully persisted to the storage layer. The MessageId assigned to the published message by the broker is returned.
+
+## Analogies of message flow in RPC and Pulsar
+
+- In Pulsar, producer is equivalent to RPC Client.
+- The RPC Client initiates a request like sending a message producer.
+- The RPC Server side receives this request as if the consumer receives the message and then carries out customized processing, and finally ACKs the message.
+- If this ACK request contains the result returned by the "server side" and is sent to the original producer(RPC Client).
+- After receiving the results returned by the consumer(RPC Server), the producer(RPC Client) directly returns the content of the results.
+
+# Motivation
+
+As we known,Pulsar's current asynchronous publish-subscribe model serves well for decoupled message distribution, but it lacks a native mechanism for handling synchronous interactions typical of Remote Procedure Calls (RPC).
+This request-reply model can greatly enhance the utility of Pulsar. We can then use Pulsar as a distributed RPC Framework. This also improves the fault tolerance of RPC calls.
+
+PIP-371 is also committed to building such a model.
+
+(https://github.com/apache/pulsar/pull/23143 and https://github.com/apache/pulsar/pull/23194)
+
+But we need to implement this distributed RPC framework in a way that does not intrude into the pulsar core library.
+Therefore, we need to use two topics, one is the request topic and the other is the reply topic. The client side sends RPC requests to the request topic, the server side receives request message and performs customized processing, and finally sends them to the reply topic. The client receives the reply message and returns.
+
+### Why would we use Pulsar for this RPC call?
+
+Implement RPC using Apache Pulsar. Requests can be sent through a client, received by one or more servers and processed in parallel. Finally, the server returns all processing results after processing, and the client can perform summary and other operations after receiving them.
+This proposal to achieve the function is request. Request and existing send function of pulsar can be mixed to same topic. This means that the user can choose, and the call to the server side (consumer) can be asynchronous or synchronous, which is controlled by the user flexibly.
+You can directly use Pulsar's own delaying messages, that is, you can execute RPC regularly.
+You can directly use Pulsar's own load balancing mechanism.
+You can directly use Pulsar's own message consumption throttling mechanism.
+You can directly use Pulsar's own expansion and contraction mechanism.
+You can directly use Pulsar's own message call tracking, monitoring, and logging mechanisms.
+
+# Goals
+
+## In Scope
+
+- To implement a pulsar-rpc-client similar to pulsar-client, we can encapsulate request request as a `request message`
Review Comment:
This is a typo?
```suggestion
- To implement a pulsar-rpc-client similar to pulsar-client, we can encapsulate request as a `request message`
```
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "Denovo1998 (via GitHub)" <gi...@apache.org>.
Denovo1998 commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1797604733
##########
pcip/pcip-1.md:
##########
@@ -0,0 +1,552 @@
+# PCIP-1: Distributed RPC framework implemented by the Pulsar client
+
+# Background knowledge
+
+## Request-Reply Synchronize Model
+
+In this model, the client sends a request and waits for a response from the server. The server receives the request, processes it, and sends back a response. This interaction pattern is fundamental in client-server communication and is crucial for synchronous operations where the client needs a response before proceeding.
+
+## Remote Procedure Call (RPC)
+
+RPC allows functions or procedures to be executed on a different machine from the client making the call, as if they were local. This method abstracts the complexities of network communication, allowing developers to focus on the business logic rather than the underlying network details.
+
+The implementation of RPC is usually based on the Request-Reply model. In this case:
+
+- The RPC client plays the role of the requester, calling a remote procedure as if it were sending a request message.
+- The RPC server plays the role of the responder, receiving the request, executing the procedure, and returning the result as a reply message.
+
+## Current behavior of sending messages in Pulsar
+
+The current sending behavior of Pulsar is when the message is successfully published, that is, successfully persisted to the storage layer. The MessageId assigned to the published message by the broker is returned.
+
+## Analogies of message flow in RPC and Pulsar
+
+- In Pulsar, producer is equivalent to RPC Client.
+- The RPC Client initiates a request like sending a message producer.
+- The RPC Server side receives this request as if the consumer receives the message and then carries out customized processing, and finally ACKs the message.
+- If this ACK request contains the result returned by the "server side" and is sent to the original producer(RPC Client).
+- After receiving the results returned by the consumer(RPC Server), the producer(RPC Client) directly returns the content of the results.
+
+# Motivation
+
Review Comment:
Already added! In the `High Level Design`.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] PCIP-1: Distributed RPC framework implemented by the Pulsar client [pulsar-java-contrib]
Posted by "Denovo1998 (via GitHub)" <gi...@apache.org>.
Denovo1998 commented on code in PR #8:
URL: https://github.com/apache/pulsar-java-contrib/pull/8#discussion_r1801038189
##########
pcip/pcip-1.md:
##########
@@ -0,0 +1,556 @@
+# PCIP-1: Distributed RPC framework implemented by the Pulsar client
+
+# Background knowledge
+
+## Request-Reply Synchronize Model
+
+In this model, the client sends a request and waits for a response from the server. The server receives the request, processes it, and sends back a response. This interaction pattern is fundamental in client-server communication and is crucial for synchronous operations where the client needs a response before proceeding.
+
+## Remote Procedure Call (RPC)
+
+RPC allows functions or procedures to be executed on a different machine from the client making the call, as if they were local. This method abstracts the complexities of network communication, allowing developers to focus on the business logic rather than the underlying network details.
+
+The implementation of RPC is usually based on the Request-Reply model. In this case:
+
+- The RPC client plays the role of the requester, calling a remote procedure as if it were sending a request message.
+- The RPC server plays the role of the responder, receiving the request, executing the procedure, and returning the result as a reply message.
+
+## Current behavior of sending messages in Pulsar
+
+The current sending behavior of Pulsar is when the message is successfully published, that is, successfully persisted to the storage layer. The MessageId assigned to the published message by the broker is returned.
+
+## Analogies of message flow in RPC and Pulsar
+
+- In Pulsar, producer is equivalent to RPC Client.
+- The RPC Client initiates a request like sending a message producer.
+- The RPC Server side receives this request as if the consumer receives the message and then carries out customized processing, and finally ACKs the message.
+- If this ACK request contains the result returned by the "server side" and is sent to the original producer(RPC Client).
+- After receiving the results returned by the consumer(RPC Server), the producer(RPC Client) directly returns the content of the results.
+
+# Motivation
+
+As we known,Pulsar's current asynchronous publish-subscribe model serves well for decoupled message distribution, but it lacks a native mechanism for handling synchronous interactions typical of Remote Procedure Calls (RPC).
+This request-reply model can greatly enhance the utility of Pulsar. We can then use Pulsar as a distributed RPC Framework. This also improves the fault tolerance of RPC calls.
+
+PIP-371 is also committed to building such a model.
+
+(https://github.com/apache/pulsar/pull/23143 and https://github.com/apache/pulsar/pull/23194)
+
+But we need to implement this distributed RPC framework in a way that does not intrude into the pulsar core library.
+Therefore, we need to use two topics, one is the request topic and the other is the reply topic. The client side sends RPC requests to the request topic, the server side receives request message and performs customized processing, and finally sends them to the reply topic. The client receives the reply message and returns.
+
+### Why would we use Pulsar for this RPC call?
+
+Implement RPC using Apache Pulsar. Requests can be sent through a client, received by one or more servers and processed in parallel. Finally, the server returns all processing results after processing, and the client can perform summary and other operations after receiving them.
+This proposal to achieve the function is request. Request and existing send function of pulsar can be mixed to same topic. This means that the user can choose, and the call to the server side (consumer) can be asynchronous or synchronous, which is controlled by the user flexibly.
+You can directly use Pulsar's own delaying messages, that is, you can execute RPC regularly.
+You can directly use Pulsar's own load balancing mechanism.
+You can directly use Pulsar's own message consumption throttling mechanism.
+You can directly use Pulsar's own expansion and contraction mechanism.
+You can directly use Pulsar's own message call tracking, monitoring, and logging mechanisms.
+
+# Goals
+
+## In Scope
+
+- To implement a pulsar-rpc-client similar to pulsar-client, we can encapsulate request request as a `request message`
Review Comment:
Yeah, it's been fixed.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org