most issues and challenges within distributed systems are typically not related to modular‐ity, but rather granularity引自第187页Granularity is not defined by the number of classes or lines of code in service, but rather what the service does—hence why it is so hard to get service granularity right.引自第187页determine the appropriate level of service granularity
two metrics:
to calculate the number of statements is to objectively measure what the service is doing
measure and track the number of public interfaces or operations exposed by a service引自第187页