Hi Aish,

RATIS-2168 <https://issues.apache.org/jira/browse/RATIS-2168> is merged.
As an example of adding a custom service, see
https://github.com/apache/ratis/blob/master/ratis-test/src/test/java/org/apache/ratis/grpc/TestCustomGrpcServices.java

Tsz-Wo


On Sat, Oct 5, 2024 at 10:12 AM Anish Sneh <[email protected]> wrote:

> Thanks Tsz, that's really helpful to add such feature.
> I am still in process of understanding the code, but love to contribute at
> some stage.
>
> Kind regards
>
> On Thu, Oct 3, 2024, 19:37 Tsz Wo Sze <[email protected]> wrote:
>
>> Filed https://issues.apache.org/jira/browse/RATIS-2168 "Support custom
>> gRPC services"
>>
>> Anish, thanks for the great idea!
>>
>> Tsz-Wo
>>
>> On Fri, Sep 13, 2024 at 2:06 PM Tsz Wo Sze <[email protected]> wrote:
>>
>>> Hi Anish,
>>>
>>> Currently, the Ratis GrpcService does not allow adding a custom gRPC
>>> service.
>>>
>>> Just have checked the code.  It seems possible to add such a feature by
>>> passing a Consumer<NettyServerBuilder> object as a parameter (via the
>>> Parameters class) and apply the consumer to the NettyServerBuilder object
>>> in GrpcService constructor.  Then, the consumer can add the custom gRPC
>>> service to NettyServerBuilder.  Are you interested in contributing it?
>>>
>>> Tsz-Wo
>>>
>>>
>>>
>>> On Thu, Sep 12, 2024 at 5:27 PM Anish Sneh <[email protected]>
>>> wrote:
>>>
>>>> Hi team
>>>>
>>>> Is it possible to add custom GRPC functionality lets say a custom
>>>> service HelloWorldService to Ratis GRPC server ?
>>>> Basically I need to add some extra endpoint for GRPC but want to run
>>>> Ratis Raft and custom service in same server and same port.
>>>>
>>>> Kind regards
>>>> --
>>>> Anish Sneh
>>>>
>>>

Reply via email to