Mobile API Architecture Unified Proxy or fragmented?

Source: Internet
Author: User

Today first answer the previous question:

Why does the app connect to the network through the operator and the connectivity rate is so bad?

1. Domain Name Caching issues

The operator's Localdns will cache the parsing result of the domain name, not to the authoritative DNS recursive query parsing

Why did you do it?

1) The Inter-network traffic settlement between operators more expensive (their internal technical team KPI), in order to maximize the consumption in the network (internal settlement good calculation), reduce cross-network settlement, so will IP address resolution to their own content cache IP address

2) push advertising, profitable. Replace the content cache with third-party affiliate ads.

2. Resolve Forwarding Issues

Some small operators diagram easy, do not carry out the recursive interpretation of the domain name, but the resolution request forwarded to other operators of the localdns, resulting in scheduling problems, cross-network scheduling, the final impact is time-consuming, when time is large enough, connectivity can not protect the

3. Localdns Recursive export NAT causes dispatch not to be allowed

Localdns recursive egress Nat means that the operator's localdns is recursive according to the standard DNS protocol, but because there are multiple exits on the network and the target route NAT is configured, As a result, Localdns finally recursive resolution of the export IP when the probability is not the IP address of the network, the impact of cross-network as above

Therefore, for the above reasons, the application side of the server-side API connectivity loss of about 5%.

For solutions see above < Mobile API interface optimization and results >

Another topic today:

Is the mobile API architecture a unified proxy or a fragmented one?

I have experienced several companies, have put all the service into a domain name, but also according to the different business to split into different domain name services

such as: Api.baidu.com/msgapi.baidu.com/userapi.baidu.com/search also resembles: msg.baidu.comuser.baidu.comsearch.baidu.com

The architecture of the corresponding internal will also be a two look

Today we will talk about, only from the architectural level is there a red proxy part of the good or not good?

What are the benefits of a general startup, or even a medium-sized Internet technology company, that many people use to spin off their business?

In general, a start-up company is driven by domain name division of the back-end API starts from the development of the team and personnel, they expect the business leaders only need to focus on their own business, there is no relationship between the business, even in the final product of the business will have a succession of dependencies, such as Message Service (MSG services) dependent on the user Service, is also the whole by the client to string logic, research and development of MSG service classmate and User Service students can not communicate or less communication, has reached the business development team to go hand in hand effect. Out of the question, but also can quickly locate is which API service hangs, each team to maintain their own services, do their own things.

At this stage of the company, it's also a good idea to get multiple teams to go hand in hand.

But for big internet companies, or technology companies with technological pursuits, this is not the ideal solution, why?

Let's take a look at the problems caused by domain name splitting:

1. Flow monitoring and other programs need to be done in each business

2. Security, anti-attack and other related issues need to be completed by each business team

3. Not conducive to unified management, need to provide each business with the corresponding operations and maintenance personnel (most of the structure of the company OP is also so equipped)

4. High-availability related basic solutions such as expansion and contraction capacity are difficult to reuse

The most important is the traffic monitoring and capacity planning, in the same proxy layer to monitor can be very quick to know the problem in the system failure, which service time increased, which service began to appear 500. If the terminal reported that the bug message does not come, in the end is the MSG service or User Service problem, at a glance, at the same time the unified expansion and contraction capacity and service degradation of the linkage, are good to do, maintenance engineer's happy life began.

Of course, this is not the only way to do it by using a split domain name and then pooling the individual monitoring data into one piece, but the cost is getting higher.

Mobile API Architecture Unified Proxy or fragmented?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.