...
- Use Case:
- Consider the situation where a number of orders that have been added to a job chain. These orders should then be serialized to guarantee that each order has completed the job chain before the next order starts.
- Consider the situation that a number of job chains makes use of the same resource, e.g. by access to objects in a database. These orders should be serialized to guarantee that only one order of one job chain can access the resource at the same time.
- Solution Outline:
- The solution is twofoldimplements two roles represented by job chains:
- Resource Locks implement implements a job chain that accepts shadow orders for serialized access to resources. The job chain guarantees that only one order at a time is granted a resource lock. The job chain will suspend orders in originating job chains as long as a resource lock is blocked and will continue such orders if the resource lock is available. Any number of orders of the same or of different job chains can use the Resource Locks job chain for serialization.
- Resource Lock Consumers Consumer implements a sample job chain that makes use of a resource that may can exclusively be accessed exclusively by by one order at a time.
- The solution is twofoldimplements two roles represented by job chains:
- References
...