GridGain Community Edition

Expand all | Collapse all

Will the value updates in different write synchronization modes be synchronized?

  • 1.  Will the value updates in different write synchronization modes be synchronized?

    Posted 12-02-2020 12:04 AM
    Hi ,
     
    I would like to consult the following questions,thanks.
    When I Perform KV operation in ignite, partition mode is in different write synchronization modes (PRIMARY_SYNC, FULL_ASYNC, FULL_SYNC), first execute cache.put() operation to initialize data, and then execute cache.put() again to update value and query the data immediately after the update. Is the value found at this time before the update or after the update? What is the performance in different write synchronization modes of replication mode? (For example, in the replication cache and PRIMARY_SYNC scenarios, query immediately after updating the value. At this time, is the value queried before the update or just after the update?)
     
    BR,

    ------------------------------
    Qiaoqiao Sun
    office staff
    ASUS Technology
    ------------------------------


  • 2.  RE: Will the value updates in different write synchronization modes be synchronized?

    Posted 12-02-2020 04:03 AM
    Hello!

    I think that the only way to guarantee you don't see the initial value is to do all operations in a transaction, on TRANSACTIONAL cache, and use corresponding isolation mode. Then it should not depend on synchronization mode.

    If it's OK for this to happen casually, then PRIMARY_SYNC or FULL_SYNC + readFromBackup=true should usually lead to the expected behavior.

    Regards,

    ------------------------------
    Ilya Kasnacheev
    Community Support Specialist
    GridGain
    ------------------------------