Hi,
We have CouchBase document use to store vehicle location data (lat, lang) and vehicle availability status (Bussy, Idle, etc). The location data is received every 15 seconds. Sometimes we cant change vehicle status using the getAndLock() method and it gives a Temporary lock failure exception.
Our current approach is to retry (3 times) to get the document lock and try to update.
Is there any other way to provide priority to the vehicle status update thread other than the vehicle location update thread?
Thanks.