You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
can we take advantage of the Watch API to make a distributed lock? maybe there are cases like a distributed task (https://docs.snowflake.com/en/sql-reference/sql/create-task.html), each task has to be executed ONCE in a query instance, avoiding two query instances get executed in the same time. thus the tasks can be protected by a distributed lock.
But the execute-exactly-once semantic can not be implemented with just a lock. You still need some stateful service to store if the task has already been executed.
Summary
A client requests metasrv to create a stream to receive events about a key.
A good reference of watching API is: etcd-v3 watch API: https://etcd.io/docs/v3.2/learning/api/#watch-api
meta.proto
:WatchRequest
, it subscribes to a queue for apply events.The text was updated successfully, but these errors were encountered: