In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Original articles, welcome to reprint. Reprint please indicate: reproduced from IT Story Association, thank you!
Original link address: "Advanced article" docker container for microservice tutorials (1)
I have learned from my junior and intermediate buddies. Thank you for your support. Haha, I have started the advanced chapter. This time the design to springboot and spring cloud, the focus is on landing, the previous CICD involved in the face of the old iron said the final image deployment did not say, I said the senior will make up!
Micro service
Microservices have been popular in recent years, and it doesn't matter if you don't know it. It can be understood as a module of a project. Microservices run in docker containers. If you manage docker containers, use service orchestration framework k8s.
Why go on with the advanced article?
Automated deployment of mirrored production environment
Update frequency of IT system in different industries
Longitudinally, the update frequency of the system is more than half a year, the green part is 3-6 months, and the blue part is updated every month. Horizontal is the subdivision of the industry: manufacturing, financial industry, Internet industry, transportation logistics industry, retail industry. Among them, the Internet updates the highest frequency of 92% of the services are updated every month. There should be many services that need to be updated multiple times a month. I believe that if an industry wants to have competitive excellence, the update frequency must be constantly increasing. This will force more and more enterprises to join the transformation, docker micro service is the direction.
Problems existing in IT system support
Looking at the two problems with the largest proportion, the complexity of the system is getting higher and higher, and the management of IT operation and maintenance is complex, so it is difficult to build a full-function team. Frequently upgrading the application development team will be very painful: enterprise business systems after years of development, the system is often very large, the complexity is very high, to change any of the small functions need to deploy the entire application, agile development and fast services are out of the question, the traditional industry in the traditional IT construction process often use different technologies, there is a great surprise before the technology Management and operation and maintenance are more complex, with the prominence of these problems, the demand for enterprises to transform to micro-services is becoming more and more intense.
Implementation of micro-service architecture
6% of enterprises use spring cloud development framework, 9% adopt dobbo and other micro-service frameworks, and 51% consider cloud native architecture transformation (public cloud, private cloud), so it can be seen that absolutely some enterprises have the need for transformation.
Comparison of docker usage between 2018 and 2017
Docker rose 4 percentage points to 11 per cent from 7 per cent in 2017. More and more applications are considering using docker, especially those with more than 100 servers.
Docker situation in 2017
The attention of enterprises is constantly increasing. The popularity of docker and the maturity of containers provide a lot of foundation for the landing of micro-services. Lightweight containers are the best environment for micro-services. In the container environment, the continuous integration of micro-services with the service orchestration framework becomes possible.
Why does it exist
Tencent, Ali, JD.com and Sina are all using docker. Through the picture data and case description: docker, service choreography, micro-services are worth learning. It may be a technology that every developer and operator will have to understand in the near future.
# what do you say in high-level details?
Micro service
Traditional architecture evolves the advantages of the architecture diagram of micro-service micro-service the problems and solutions brought about by micro-service
From the perspective of actual combat
1. Traditional services and micro-services are compared to learn.
Problems and industry solutions (springboot + spring cloud) many old friends are engaged in java. Learn about the relationship between springboot and cloud and micro services, docker, and service orchestration framework. Micro-service instance development
Through the business scenario. From 0 to complete the development of the entire project, micro-service development has a profound experience, we will use dubbo,spring boot, spring cloud, gateway, thrift in the service development process.
Experience: dubbo remote call, thrift cross-language interface call, spring boot rapid development.
Several micro-services, how to divide micro-services. Their previous relationship, how they were divided.
Preparation before deployment
Dockerize the service, adjust the configuration, and create a docker image. Docker-compose, which runs in a docker container, ensures normal communication between containers. Docker repository, harbor build, push image. Kubernetes,mesos,swarm, I talked about mesos at the beginning, swarm at the intermediate level, and K8s at the senior level. In fact, they all learn one of them, and they are basically Pang Tong.
Service arrangement
Learn about mesos, draw the architecture diagram, cluster environment, deploy micro services to understand swarm, cluster environment, adjust services, deploy service finale K8s. After recognizing the leading position of service orchestration through docker in 2017, the growth occurred in 2017. K8s is the first choice for docker in enterprises. The threshold is so high that optical service construction can overwhelm people. Understand the concept, basic cluster building, pilot test, service discovery, authentication and authorization, deployment of micro-services. CICD and Devops
Jekens and gitlab Intermediate owe you jekens this supply. The goal is to automate everything from code submission to process updates.
Environment parameters do java commonly used IDEA message service using python3.6.3RPC framework Thrift0.10.0 cross-language Ubuntu-16.04Docker-18.03kubernetes-1.9.0 technology reserve familiar with java background development familiar with docker basic commands, mirror container familiar with linux basic operation
PS: grasp micro-services as a whole, clearly understand the various concepts of micro-services, if you develop micro-services, micro-service communication between technology stacks, how to run a service in a docker container, how to establish connections between services, service choreography and service discovery expansion under various choreography frameworks. Docker is definitely your only choice in the future. Come on, let's work together to become a better ourselves.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.