Tencent Cloud Shopping Strategy: Best Choice for Regions, Servers and Databases
I often see people buy servers in Shanghai and databases in Guangzhou. Although the business can run through,
Millisecond network latency
and
Expensive public network traffic charges
, will make your system performance in half.
Today we will talk about these three dimensions and choose the best configuration.
The first step: lock the area, which is the premise of intranet interconnection
The core logic of region selection is:
Close to the user, and all resources must be in the same box.
Deployment in the same region (core): * Make sure that your CVM server and database are purchased in the same city (for example, both in Hong Kong or Guangzhou). Why? Because the same region can go intranet interconnection. Not only is intranet latency extremely low (usually <1ms), but traffic is completely free. If you take the public network, not only slow, but also pay extra traffic fees.
Specific city selection: Mainland China: the fastest access, but the domain name must be filed. South China chooses Guangzhou, East China chooses Shanghai, and North China chooses Beijing. Hong Kong, China: It is close to the mainland and does not need to be filed. Suitable for projects that want to go online quickly. Overseas nodes: the first choice for business going to sea. Southeast Asia chooses Singapore, North America chooses Silicon Valley.
Step 2: Pick a good server
The server (CVM) determines how fast your business runs.
Standard Type (S Series): Balanced performance of the "panacea". Enterprise official website and small program back-end choose it as the most cost-effective, and it is recommended to start with 2-core 4G or 4-core 8G.
Computational (C-Series): Concurrent "harvesters". The brain turns fast and the single accounting is strong. Suitable for complex logic processing, video transcoding, and game backend.
Memory type (M series): the belly is particularly large. Specifically used to run high-performance caches (Redis) or large databases.
Step 3: Set up the database
The server determines the upper limit and the database determines the lower limit. If the data is lost, the business is completely finished.
MySQL (TencentDB): Default option, save user, order, money. Steady as a mountain.
TDSQL-C: "Stretch pants" in the database ". Cloud-native architecture, storage space is automatically long. You don't have to worry about the hard drive being exploded, which is very suitable for explosive growth of the business.
Redis: the system's "antihypertensive drug". It is a "plug-in" in memory, and the query is one hundred times faster. As long as there is traffic, it is recommended to match it, which can help the main library block 90% of the access pressure.
4. Actual Combat Copy Homework: Three Gold Matching Schemes
Business scenarios
Geographical recommendations
Recommended combination (must be in the same region)
Reason
Formal domestic projects
Guangzhou/Shanghai/Beijing
Standard + MySQL + Redis
Filing compliance, intranet interconnection latency is extremely low.
Fast online/cross border
Hong Kong, China
Standard + TDSQL-C + Redis
Free filing, automatic database expansion.
High Concurrency/Games
Singapore/Silicon Valley
Computed + TDSQL-C + Redis
Extreme computing power, with the global festival
Point.
Final Recommendation
Check, check, re-check: Before placing an order, be sure to take a look at the "region" of the server and database ". If you accidentally buy two different cities, the middle part of the road is the "death road" of your business ".
Buy new and not old: For example, the S6 series is usually cheaper and more powerful than the S5.
Don't build your own library in the server: buy professional cloud database products. Although a bit more expensive, it comes with automatic backup and failover. Don't waste your time manually repairing damaged databases to save that money.
