What is the transmission speed of php remote database reading?

Source: Internet
Author: User
What is the transmission speed of php remote database reading? I have some pages to be mounted to other websites, and then I want to read data from my database to those pages. Will it be slow to read data through mysql_connect? Will there be a big problem? Because we need to purchase products on those pages and then jump to our background to make payments ···
Ask for the insights of Masters ···


Reply to discussion (solution)

Test it.

This is basically not recommended. let him host the server in your IDC of the same CIDR block. make the server an intranet data, and then the two front ends read the intranet data server data.

To someone else's website, and then read data from my database
Remote operations must be slower.
The problem is that the remote operation requires the permission to expose all your data to the other party.
This should not be what you want, because there areOur back-end payment

To someone else's website, and then read data from my database
Remote operations must be slower.
The problem is that the remote operation requires the permission to expose all your data to the other party.
This should not be what you want, because we still have to pay in the background.
Hello ··
In this case, we have a shopping backend, but the front-end wants to put it on a cooperative website (maybe there are multiple websites ), then, on the cooperation website, there are some separate pages dedicated to the products on our website, and click "buy" to jump to our place to pay for the deal.
Do you think this idea is practical? Is security very difficult?

Reference the reply from xuzuning on the third floor: mount it to someone else's website and then read data from my database
Remote operations must be slower.
The problem is that the remote operation requires the permission to expose all your data to the other party.
This should not be what you want, because we still have to pay in the background.
Hello ··
In this case, we have a shopping backend, but the front-end wants to put it on a cooperative website (maybe there are multiple websites ), then there are some separate pages on the cooperation website dedicated to our network ...... If someone else's website is used to hook up their own things and just make a link, there is actually nothing. if it involves payment or something, please be careful.

I understand what you mean. you want to show the products on your platform to other merchant websites. In fact, you do not need to open the mysql permission, because it is not safe for others to have the database permission.
You can take a look at other data interactions, such as xml or webserver. you provide them with such an interface, which is much better than you directly grant them database operation permissions.

If it is not the same data center and the same switch, the speed is very slow. The best way is to make an API interface for the other party to call

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.