In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
What guarantees are required for a complete commercial Web service? I believe that most people do not understand, in order to let you better understand, the editor summed up the following content, do not say much, let's look down together.
1, full technology stack
Unlike a Demo demo, a valuable Web service for business is fully functional, with service assurance and monitoring mechanisms. Special emphasis on the cache system, if all read and write the database directly without adding the cache mechanism, then once the number of users increases, the system will almost certainly collapse.
1) Database
2) caching system
3) message queue
4) document service
5) Authentication
6) Asynchronous task scheduling
7) Log system
8) Service monitoring
9) no, no, no.
2, system architecture
The schematic diagram is as follows:
3, automatic build
After the development is completed and the test passes, submitting the code triggers the automatic build system.
Ali Cloud Container Image Service provides Docker image repository hosting, configures project code Git repository and construction rules, and implements cloud compilation and packaging with Dockerfile, eliminating the need for commonly used Jenkins build servers.
4, one-click deployment
Docker is an open source application container engine that packages applications and dependencies into a portable image, deploys to a server and runs in a Container container instance.
Resource orchestration Docker-compose defines and runs an application system composed of multiple containers, declares each service through the docker-compose.yml file, and completes the creation and startup of the application as a whole.
We use Docker to deploy applications quickly and efficiently. We first look at the operation steps and usage time:
Operation
Script
Usage time
Resource choreography, configuration mirroring
Docker-compose.yml
-
Install Docker,Ubuntu server available scripts
Docker.sh
-
Pull the image and download it when there is an update
Pull.sh
-
Start the service container
Up.sh
10s
View the running log
Logs.sh
-
Out of Service
Down.sh
15s
Take the full deployment of Web service scaffolding as an example, the code script file:
Https://github.com/jextop/StarterDeploy
Automatically install Docker in ├── docker.sh # Ubuntu environment
├── docker-compose.yml # resource orchestration file to configure individual services
├── pull.sh # pull the required Docker image
├── up.sh # starts the dependent runtime with one click
├── logs.sh # View the container running log
├── down.sh # stop the running environment
1) install Docker
The Ubuntu server can run the script docker.sh to install automatically
Https://docs.docker.com/install/linux/docker-ce/ubuntu/
Https://docs.docker.com/docker-for-windows/install/
2) pull.sh pulls the image
Pull the required images in batches, and view them on docker images after completion:
3) up.sh startup container
The docker-compose up-d command is encapsulated in the script. After startup, docker ps views the container instance:
4) logs.sh view log
Custom commands highlight important information:
Docker-compose logs-ft | grep-- color-I-e error-e warn-e version-e exception
5) Open the management backend and view the service
6) down.sh stops service
Run docker-compose down-- remove-orphans to stop and delete the container:
These are the details of the complete commercial Web service. Do you have anything to gain after reading it? If you want to know more about it, you are welcome to follow the industry information!
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.