Ajax Service Trilogy: Why Not,why,when

Source: Internet
Author: User
Tags web services client
Ajax

In addition to SOA, there may be another aspect to making SOA a list of many IT organizations in the last few months: Ajax. While this is more likely to make a splash on web usability and professional design, it does bring an effective way into the domain of service-oriented architecture, and we will show you some of these approaches below.

Ajax is the abbreviation for asynchronous JavaScript and XML words (asynchronous JavaScript and XML). As the Web services developer should be about, the technology that we should focus on is its asynchronous nature, and its accompanying JavaScript root that implies knowledge of the executable environment in a language-named a browser-and also brings at least one point of view, The visual effect it produces once it is able to function (not that we ignore this last point, but that graphic designers are generally more adept at solving these problems than programmers).

Asynchrony is the profile of a client and a server-side interaction in which the client waits for the response from the server to be accepted without waiting on the server side-or, often, as blocked. messaging systems, such as Mq-series, Tibco Rendezvous, and JMS-like programmable APIs, are the concepts of asynchronous mechanisms earlier, but now Ajax is addressing Web application problems in the same way.

The asynchronous concept of Ajax comes from JavaScript function calls made by browsers and returns the results to Web service providers or server-side applications. When you interact with an AJAX application, the way that you can update the pieces of information displayed on the screen without having to refresh or reload all of its content is asynchronous, because you can build many different calls on the server side without waiting for the server to respond--the client blocks-- Moment of staring at a blank screen.

Although formal supporters of Web2.0 include the most frequent use of Ajax by image designers and software marketers, many of the software developed to make AJAX applications a collection of reusable services.

Oddly, the data provided for an AJAX application need not be constrained by a Web browser client or JavaScript language, and in fact an optimized AJAX design will be determined on the server in a way that is widely known as a Web service design: REST ( You can see more information about rest in the rest:simplicity in the Web Services design column. )

Rest services, a simple access point that is created to provide an Internet URL, effectively obscures the server-side platform, such as the Web service you might expect and the simplest design patterns provided by the earliest Web services selectors, such as ebay, Yahoo! and Amazon. They are essentially providing a granular chunk of data rather than providing a complete page, and the data blocks provided can be consumed and generated according to the requirements provided by the client.

Because the lifecycle of an AJAX application is made up of the process of updating a particular part of the screen called from the server, the rest service provides a superset of the Ajax-based application. So if you have an existing Rest service group now, this will be a good start for your AJAX application. A similar, you will be well advised to take the necessary steps to integrate all of the assets that you are using to make your AJAX application a larger collection of rest services, so that these assets can be used in other service-oriented/non-AJAX applications.

On the other hand, binding to a browser to use your service, hiding a limit to your use of the environment, so it will also imply the creation of your Web services client. Many Web services clients, however, have the ability to centralize and control data from other different sources, which can be implemented because they are made up of Java EE-like. NET or the system architecture of PHP.

Consider integrating data between two different Web service providers. This is as simple as it might be in a non-browser environment, proving to be a headache in an AJAX application, which is why it is a cross-site script. To be able to work to prevent malicious code from executing, a browser is usually restricted, and it can only execute logic code that is owned by the site it displays. This prevents trust requests from being performed at those untrusted sites, but this same process avoids approaching two or more different Web service providers, except in the case of a browser with a lower security configuration requirement Because this approach is considered a bad way throughout the IT security practice.

Finally, another thing to consider is the JavaScript language used to build AJAX applications. Each programming language used to develop Web applications relies on a specific framework to reduce the difficulty of developing tasks and adapt to the nature of the web. Most of these frameworks are for server-side platforms, and Ajax as a simple collection of separate rest services on the service side is not a feature that other Web architecture platforms offer that do not apply to AJAX applications. It is the simple things that these designs focus on--such as standardized requests or control classes--that are transferred to the browser. At the end of the page, research on many JavaScript architectures is worthwhile to make it easier to create AJAX applications.

Ajax is essentially the next trend in web development, but it does not mean that it will be a new focus on the web. As you may have realised, considering the integration of your entire service-oriented motivations on Ajax design means you can get the most out of your time and resources. So the next time you develop an active solution to the effectiveness of AJAX applications, try to use the same reusable approach to SOA.



Related Article

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.