Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Selecting an unused network and updating it (extended attributes)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2020 01:42 PM
1481     0
I would like to understand which is the best way to implement the following scenario through REST APIs:
I have a set of networks already defined and an Extended Attribute is used to track if the network is in use or not.
I would like to search for a not used network and then update the Extended Attribute to flag the network as in use.
I'm having difficulties identifying a mechanism that would allow me to implement the search and update operation in an atomic way: I do not want that two concurrently running queries identify the same network as free and then try to update and use the same network "twice".
Thanks in advance for the help.
Labels: