What is service granularity?

Asked

Viewed 1,219 times

5

What is service granularity in SOA?

What is the difference between fine and coarse granularity?

  • I think the question was succinct and precise, and there’s no problem with it.

1 answer

5


"Service granularity" is used to measure abstraction depth which has been applied in the services.

Granularity can be divided into two parts, being:

  • Fine grained granularity (fine grained): It determines that we need many "grains". We will have services with few operations, but we will divide these operations by several services.

Example: Split operations of a CRUD of customers via WCF service into two services

Servicocadastrocliente with Create client(), Update() and Exclude operations/methods()

Servicovalidarcadastrocliente with Validator(), Validator() and Validator() operations/methods

  • Coarse granularity (Coarse grained): It determines that we will have few "grains", much larger. We will have few services, but each of them will contain a much larger portion of operations.

Example: Define only one service for the operations of a customer CRUD via WCF service

Servicocadastrocliente with operations/methods Criaclient(), Updater(), Excluircliente(), Validator(), Validator() and Validator

Browser other questions tagged

You are not signed in. Login or sign up in order to post.