I’m developing a resource that gets an available IP from an IPAM system.
The backend method call gets the first item with a status of “Available” and marks it as “Used”
The problem I have is that when I try to create multiple instances of this object, creation seems to happen in parallel. The result is that I get two resources with the same IP…
How can I implement logic for the resource based on the “count” passed in?