Hi Everyone, I am using consul kv store implementation for my project. So, I would like to describe one scenario here. So, there are two threads (python implementation) which are running and are getting scheduled at every 30 secs. Now, there will be a time where both threads will try to write to consul kv store which is a shared storage and probably at the same time. So, if that will be the case, will consul internally provides locking mechanism by-default to write a data to the same key ? From my side, I have done small experiment which describes above case. Started two python processes which will start writing to same consul key at the same time. I did not face any problem. But, still there was some difference of micro-secs. Hence, did not reach to concrete decision. Please let me know if anyone has anything to say on this. Thank you in advance !
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Is putting a key with the "?cas=0" option mutually exclusive | 0 | 391 | February 13, 2020 | |
| Synchronization when updating KV store | 10 | 2853 | April 11, 2020 | |
| How to implement atomic read-change-write? | 1 | 990 | October 17, 2020 | |
| About consul kv cache | 2 | 1540 | January 8, 2020 | |
| Consul KV store benchmark(new) | 0 | 334 | June 29, 2021 |