Micro Service vs Nano Service?

So what do you call it? Micro or Nano Service?

What differences do they have? I came across many blogs on the Internet and I could find a satisfactory answer.

Found this quote from Mark Little on InfoQ :

First of all, what is a microservice? Well, actually it’s not difficult and fast, but from conversations with different people, there seems to be a consensus that the microservice is a simple application that is around the 10-100 LOC mark.

other:

Nanoservice is an antipattern where the service is too fine-grained. Nanoservice is a service whose overhead (communication, maintenance, etc.) outweigh its usefulness. Like Steve and others, Arnon concludes that Microservices is another name for SOA.

I am looking for an exact and explainable difference between Micro and Nano Service. I appreciate your opinion!

+4
source share
2 answers

While Jeroen's answer approaches the essence of the differences between SOA, microservices, and nanoservices, I think this is a little confusing in the end.

Thus, SOA disrupts the functionality of the system in accordance with business opportunities (for example, Jeroen OrderService or, possibly, CustomerService). Services are often called other services, which is why they very much involve the concept of a network of services with dependencies among themselves, and also embody the concept of the composition of a service when some services essentially combine other services.

SOA, , Mark Little, , SOA. , , SOA. , DDD BoundedContexts , , .

- , , , , . .

, OrderService:

  • OrderService, - . SOA, 3 .

  • OrderManagementService, . , SOA, (, CreateOrder, CloseOrder ..) -.

  • CustomerManagementService, . , SOA, (, RegisterCustomer, DeleteCustomer ..) -.

  • OrderProcessingService, Order, , OrderManagementService CustomerManagementService, SOA. -.

. , CustomerManagementService, , , ValidateEmailAddressService, RESTful. , , .

, , , , - . , , , , .

+2

SOA- - , ( -). - ( → → ). , , .

, SOA , Microservice .

OrderService - SOA-, , . - . .

+2

Source: https://habr.com/ru/post/1663154/


All Articles