You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ratis.apache.org by Asad Awadia <as...@gmail.com> on 2021/12/31 04:29:23 UTC

Multiple state machines

Is it possible to have multiple statemachines for a single raft group id? So I can have the same writes go to multiple DBs?

Regards,
Asad

Re: Multiple state machines

Posted by Asad Awadia <as...@gmail.com>.
Got it. Thank you

Asad
________________________________
From: Tsz Wo Sze <sz...@gmail.com>
Sent: Wednesday, January 5, 2022 7:21:11 AM
To: user@ratis.apache.org <us...@ratis.apache.org>
Subject: Re: Multiple state machines

Yes.  We could implement a StateMachine using the composite pattern ( https://en.wikipedia.org/wiki/Composite_pattern ).  The composite StateMachine forwards the writes to its child StateMachine(s).

Tsz-Wo

On Fri, Dec 31, 2021 at 12:29 PM Asad Awadia <as...@gmail.com>> wrote:
Is it possible to have multiple statemachines for a single raft group id? So I can have the same writes go to multiple DBs?

Regards,
Asad

Re: Multiple state machines

Posted by Tsz Wo Sze <sz...@gmail.com>.
Yes.  We could implement a StateMachine using the composite pattern (
https://en.wikipedia.org/wiki/Composite_pattern ).  The composite
StateMachine forwards the writes to its child StateMachine(s).

Tsz-Wo

On Fri, Dec 31, 2021 at 12:29 PM Asad Awadia <as...@gmail.com> wrote:

> Is it possible to have multiple statemachines for a single raft group id?
> So I can have the same writes go to multiple DBs?
>
> Regards,
> Asad
>