Home > Article > Backend Development > Detailed introduction to XMLHTTP objects
1. Background In today’s websites, there are more and more access channels, and the technology is becoming more and more advanced, such as WAP, SMS, EMAIL, traditional Web, Socket, etc. If even databases and LDAP are In terms of access, the space that needs to be expanded in the design must be very good to ensure that when adding new channels, no more code modifications or even code changes are required. But is it possible? It is impossible to think about it, but is there any way to better solve the perfection of this multi-channel access framework? 2. Architecture When all the existing accesses have been used, the designers are dazzled. If it is to get a share, then these programs can be written in any way, and they can definitely be implemented, but it will be difficult to maintain. It's more painful, but let's go back to the question, how can we achieve more perfection? During the architectural discussion of the project team, the idea of routing was raised. The core of connecting all these channels is the XMLRouter, the head of the octopus. The role of the Router here is to communicate with all channels, realize data routing, and strive for the scalability and flexibility of the system in the architecture. The benefits will be many. It is called XMLRouter because if it is not
Introduction: In fact, the main purpose of writing this article is to show a framework I applied when doing a project in Switzerland last year for everyone to share, but I am a little worried My expressive ability cannot express the ideas I used in it well2.
How to use XML to realize the structure of multi-channel access websiteIntroduction: In today’s websites, there are more and more access channels, and the technology is becoming more and more advanced. , WAP, SMS, EMAIL, traditional Web, Socket, etc. If even databases and LDAP are considered to be connected, then the space that needs to be expanded in the design must be very good to ensure that new channels are added. In this case, there is no need to modify the code more or even no changes to the code.
【Related Q&A recommendations】:
The above is the detailed content of Detailed introduction to XMLHTTP objects. For more information, please follow other related articles on the PHP Chinese website!