New to effect, trying to get my head around requirements and resources. The situation I'm thinking about is one where some actions are sensitive and require acquiring a lock stored in a database before they can run (or fail if the lock isn't free). I'm thinking this is a resource that depends on a database resource, and somehow gets the unique id of the current action as a parameter to acquire the lock, and then releases the lock in the release function.