This article was first published on Stories by NULS on Medium
With the maturity of micro-service architecture technology in recent years, more and more well-known enterprises, including Alibaba, Didi and Vipshop, have turned to utilizing microservices for refactoring their systems. Even in the blockchain industry, a global hit in 2017, the micro-service architecture is also a go-to choice for refactoring blockchain systems.
Why are these famous companies beginning to renounce monolithic architecture by choosing to use microservices instead? How can the blockchain be integrated with microservices?
What is Monolithic Architecture?
Since the early stage of Web applications, the monolithic architecture has been the dominant architecture in software systems. So what is a monolithic architecture?
Suppose you intend to develop an e-commerce system that contains various functional modules such as orders, customers, and goods. After the development is completed, you package the whole project and then deploy them to a server, which responds all queries from users.
The architecture of a system like this, where all the functions are deployed on the same server, is a monolithic architecture.
Defects of Monolithic Architecture
Those who have maintained a large software system using a monolithic architecture know that when adding a new business function to the system, you have to download all modules code from the repository, deploy it in the IDE, and then develop and test it. Even though there exists part of the code you need in an implemented module, there is no way to call it directly and you have to make a copy and then modify to realize the new business functions.
These are reflections of tight module coupling, poor code reusability, and low scalability in a monolithic architecture. In small software systems, as the business logic is not too complex, it is often feasible to adopt a monolithic architecture as a development cost tradeoff.
However, in large software ...
To keep reading, please go to the original article at:
Stories by NULS on Medium