当前位置:网站首页>Single application and microservice application
Single application and microservice application
2022-06-29 06:26:00 【Yi Yue Wang Chao】
What are monomer applications
An archive package contains all the functions of the application , Commonly referred to as monomer applications . An archive package ( It can be JAR、WAR、EAR Or other filing formats ) Applications with all the features , Commonly referred to as monomer applications . And the methodology of building a single application , Single application architecture . The presentation layer of all business scenarios 、 Business logic layer and data access layer are put into one project , Finally, it was compiled 、 pack , Deployed on a server . A single application framework is often used . For example, simply use django Carry out front-end and back-end development of a project , The developed project will django+uwsgi+mysqhl+nginx An application deployed on a server is a single application .

The pain points of monomer application mainly lie in :
Branch Management in parallel development
Language switching 、 Version switching is difficult
What is micro service application
Microservice architecture style is a way to develop a single application into a set of small services , Each service runs in its own process , Lightweight communication mechanism is adopted for inter service communication . These services are built around business capabilities and can be deployed independently through a fully automated deployment mechanism . These services share the smallest centralized management , Services can be developed in different languages , Using different data storage technologies .

Comparison of advantages and disadvantages
Advantages of monomer application :
Easy to share : Contains all the features , Easy to share among teams .
Easy to test : Once deployed , All services are available , Simplify the testing process , No extra dependence .
Easy to deploy : Just copy a single file to a single directory .
Disadvantages of monomer application :
High complexity : Because it's a single archive , The whole project contains many modules , The module boundary is fuzzy , Dependency is not clear , The code is piled together , Make the whole project very complicated , Longer compilation time .
Limited expansion : Monomer applications can only be expanded as a whole , Can't scale according to the needs of the business module .
The advantages of microservice Architecture
Easy to develop and maintain : A microservice only focuses on a specific business function , So the business is clear , Less code . Developing and maintaining a single microservice is relatively simple .
A single microservice starts faster .
Local modification is easy to deploy : The monomer application only needs to be modified , You have to redeploy the entire application . Modify a microservice , Just redeploy the service .
Flex as needed : According to the demand , Implement fine-grained extension .
The shortcomings of microservice architecture :
High o & M demand .
Using microservices to build distributed system . System fault tolerance 、 Network delay 、 Distributed transactions will bring huge problems .
The cost of interface adjustment is high , Microservices communicate with each other through interfaces . Modify a microservice API, Maybe all the microservices using this interface need to be adjusted .
边栏推荐
- Top ten Devops best practices worthy of attention in 2022
- Programming specification and variables of shell script
- Where is the Gcov symbol- Where are the gcov symbols?
- Fresnel diffraction with rectangular aperture based on MATLAB
- Pytest (7) -yield and termination function
- What should I learn before learning programming?
- Rich material libraries make modeling easy and efficient for developers
- Use of sed in shell script
- Two houses with different colors and the farthest distance
- Week 10 - task 0- execution process instance resolution of constructors and destructors
猜你喜欢

Rich material libraries make modeling easy and efficient for developers

Openfpga wishes you a happy Lantern Festival!

Establishing the development environment of esp8266

The simple problem of leetcode is to divide an array into three parts equal to sum
![ASP. Net core 6 framework unveiling example demonstration [03]:dapr initial experience](/img/fd/4c24e10fc91a7ce7e709a0874ba675.jpg)
ASP. Net core 6 framework unveiling example demonstration [03]:dapr initial experience

Internet enterprises need CRM software to help

Manual (functional) test 1

Why are keys unordered in golang map

There are two ways for golang to develop mobile applications

Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
随机推荐
Ghost in the Log4Shell
Slot
Fault: NetBt log for id4321
Honeypot based on MySQL load data local INFILE
Longest substring between two identical characters of leetcode simple question
How to hand over complex legacy systems?
Pointer from beginner to advanced (2)
Go compile source code (window environment)
Regular expressions for shell script values
The first commercial spacewalk of mankind is finalized! Musk SpaceX announced a new round of space travel plan, and the American rich became repeat customers
Modularization and modular specification commonjs
2022.02.14
CCTV revealed that xumengtao won the black Technology: there was a virtual coach???
ICLR is going to have a big discussion on the deep generation model. Max welling and the winner of the AAAI million dollar award are here. Bengio is one of the organizers
Installing modules in pycharm
Easy to understand TCP four waves (multi picture explanation)
[high concurrency] deeply analyze the callable interface
3 frequently tested SQL data analysis questions (including data and code)
5- (4-benzoimide phenyl) - 10,15,20-triphenylporphyrin (battph2) and its Zn complex (battpzn) / tetra (4-aminophenyl) porphyrin (tapph2) Qiyue supply
DANGER! V** caught climbing over the wall!