When talking about APIs, the terms “coarsely grained” or “finely grained” are used a lot. What do these mean/are there any examples?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve seen the distinction used a lot with SOA, e.g.:
http://www.ibm.com/developerworks/webservices/library/ws-soa-granularity/
Basically, coarse-grained systems will have less method calls than a fine-grained system. Clearly coarse-grained methods will be fewer and do more work than the broken-down fine-grained versions.
Coarse grained interfaces will generally be better where calls are expensive, in a distributed system for example.