In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Introduction to the architecture of Aliyun small e-commerce service platform
At the beginning of the e-commerce platform, the number of visits was small, but it may soar in the future, and the business model in the early stage is adjusted frequently and sensitive to price, so it is hoped that the server platform architecture has good functional scalability and performance scalability. All platform software had better be free, and the performance meets the future development, with redundant and highly available design, and the price of the platform should be very cost-effective. The only thing that can meet this need is cloud platform + SLB (load balancing) + Nginx (reverse proxy) + Tomcat (JAVA running environment) + MySQL (database) + NAS (network attached storage). Why not choose a physical server? Because if you select a physical server, you need to rent an IDC server room, purchase physical server equipment, build an environment, and the cost is at least twice that of the cloud platform, and it is troublesome to expand and scale up, so it is appropriate to use the cloud platform at the initial stage.
Business application requirements:
High security.
High availability, avoid single point of failure, and have redundancy.
The system is stable and reliable, and the system used had better be free or cost-effective, so SLB+Linux+Nginx+Tomcat+MySQL is all free software and is the best choice.
In the future, with the increase of business, the system should be flexible, clustered, and can support the expansion of tens of millions of levels of concurrency.
The following figure shows the Alibaba Cloud server platform for start-up e-commerce companies, which is used in e-commerce websites / APP/ e-Mall, etc., which can meet 1-100000 visits per day, 300 orders per day, and free security protection.
The first part: cloud Monitoring, Security Knight AEGIS, WAF, situational Awareness are provided by Aliyun, almost all of them are free of charge.
The second part: load balancer, pay to provide master and backup redundant available load balancer, charge by traffic or fixed bandwidth.
CVM ECS, that is, virtual server, is available with windows and Linux systems. At least two failover clusters are required to run the main program of the website and run Nginx (reverse proxy) + Tomcat (JAVA operating environment) software. Fees are charged according to performance, bandwidth, storage space and rental time.
NAS (Network attached Storage): used to store website programs and website images (if there are more visitors in the future, the website images can be stored on OSS and can be accelerated using CDN)
Part 3: cloud database RDS. You can choose from a variety of database platforms, all of which support dual-computer hot backup and high availability, and are charged according to performance, storage space and rental duration.
Second, free Aliyun small e-commerce service platform environment access
1. Register an Aliyun account.
2. Enter the free product for 6 months in the "latest activity" and get the free product.
3. Get 7 free products
4. First, activate "CVM ECS" and "CVM RDS". It is best to activate both in the same area, otherwise the connection to the RDS database will be remote.
In fact, it is very difficult to drive in the same area for free, depending on luck.
If you are not in an area, the database can only be accessed through the external URL of RDS. Click manage to view the public network access address of RDS.
Third, make sure that the e-commerce source code (JAVA JSP) and database can work properly.
Source file confirmation
Of course, the account number and password of the database are used in development and need to be modified when deployed to Ali Cloud.
4. Deploy the database on "CVM RDS".
Because "CVM RDS" is a high-availability version of the dual server itself, you don't need to build it yourself. If the business increases, you can upgrade the server hardware, expand the separation of read and write, add instances, and improve database performance.
Set the high-authority account and password of RDS
Connect to Aliyun RDS database locally
A. Confirm your fixed IP
B. Add the fixed IP to the whitelist
C, Navicat connects to RDS
D. Create new database
After the import is successful, "close the connection" and then connect to the RDS, and check that the data has been generated in the table, indicating that the database has been successfully established in RDS.
Finally, you need to change the file that connects to the database in the original code, otherwise the program cannot connect to the database after running.
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.