You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by 上帝已死 <52...@qq.com> on 2016/03/01 09:09:36 UTC

Apache Ignite is how to ensure the data's consistency between multiple server?

Apache Ignite is how to ensure the data's consistency between multiple
server?Especially, in the case of high concurrency.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by Yakov Zhdanov <yz...@apache.org>.
"Both" means REPLICATED and PARTITIONED.

You can also think of replicated cache as of partitioned configured with
unlimited number of backups.

--Yakov

2016-03-02 10:48 GMT+03:00 上帝已死 <52...@qq.com>:

> applies to both? Sorry, I don't understand your mean.
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3333.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by 上帝已死 <52...@qq.com>.
applies to both? Sorry, I don't understand your mean.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3333.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Tue, Mar 1, 2016 at 2:34 AM, 上帝已死 <52...@qq.com> wrote:

> PS: Cache mode is Replicated.
>
>
Same documentation that Christos suggested applies to both, partitioned and
replicated caches. Also, please take a look at the transaction
documentation here:

https://apacheignite.readme.io/docs/transactions


>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3294.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by 上帝已死 <52...@qq.com>.
PS: Cache mode is Replicated.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3294.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by Christos Erotocritou <ch...@gridgain.com>.
Have a look at this:
https://apacheignite.readme.io/docs/primary-and-backup-copies <https://apacheignite.readme.io/docs/primary-and-backup-copies>

> On 1 Mar 2016, at 10:37, Christos Erotocritou <ch...@gridgain.com> wrote:
> 
> If you use full sync mode for backups, then the client node will wait for write or commit to complete on all participating remote nodes (primary and backup). This is the most restrictive configuration but will guarantee data consistency.
> 
> In addition if you use transactions for any grid operations this will also guarantee that data changes will only be committed only if the whole transaction is successful i.e. if an object with an acquired optimistic lock changes then transaction will fail and any changes will be rolled back.
>  
> 
>> On 1 Mar 2016, at 10:19, 上帝已死 <527901908@qq.com <ma...@qq.com>> wrote:
>> 
>> How does Apache Ignite ensure the data between multiple server is consistency
>> in anytime?
>> 
>> 
>> 
>> --
>> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3291.html <http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3291.html>
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com <http://nabble.com/>.
> 


Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by Christos Erotocritou <ch...@gridgain.com>.
If you use full sync mode for backups, then the client node will wait for write or commit to complete on all participating remote nodes (primary and backup). This is the most restrictive configuration but will guarantee data consistency.

In addition if you use transactions for any grid operations this will also guarantee that data changes will only be committed only if the whole transaction is successful i.e. if an object with an acquired optimistic lock changes then transaction will fail and any changes will be rolled back.
 

> On 1 Mar 2016, at 10:19, 上帝已死 <52...@qq.com> wrote:
> 
> How does Apache Ignite ensure the data between multiple server is consistency
> in anytime?
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3291.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Apache Ignite is how to ensure the data's consistency between multiple server?

Posted by 上帝已死 <52...@qq.com>.
How does Apache Ignite ensure the data between multiple server is consistency
in anytime?



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Apache-Ignite-is-how-to-ensure-the-data-s-consistency-between-multiple-server-tp3288p3291.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.