For this measure composite services were divided into four types:
1. Sequential Composite Services
2. Co-ordination Composite Services
3. Recursive Composite Services
4. Complex Composite Service
So Complexity Measure for:
Sequential Composite Service:
Composite Service Depth, CSD = Distance to the farthest service in sequence
Co-ordination Composite Service:
Composite Service Depth, CSD = Arm Count
Recursive Composite Service:
Composite Service Depth, CSD = (Optimistic recursion count + Pessimist recursion count)/2
Complex Composite Service:
Composite Service Depth, CSD = Sum of (Composite Service Depth in terms of Sequential, Recursion and Co-ordination manner)
For a good implementation CSD should not be more than 3 to 5. But in reality, most of the time consumer of a service is not aware of complete service tree.
Recursive composite service must be avoided.
As a good practice, each service should publish its CSD count.
No comments:
Post a Comment