Seven steps to building a stable server-side component

Source: Internet
Author: User
Tags iis microsoft iis
By installing Microsoft IIS (Internet Information Server) on your server, you can take advantage of the ASP (Active Server Pages), which uses ActiveX components to do all kinds of work for your network applications. Although you can use many ActiveX components in HTML and in IIS with ASP pages, server-side components are not common components running on a single server. It does not tell you any information about a product server that needs special care at run time. You won't be able to do anything to change its impact on server performance, security, and stability. Improper selection of server-side components may cause problems, including a noticeable drop in speed, security vulnerabilities, or other worse problems.
The client's components are executed on the user's computer. The client component includes the vast majority of popular components we now know: Tag controls, text boxes, command buttons, lattices, and so on. These components can be included in the client-side HTML code through <OBJECT> tags and/or HTML object syntax.
Most of the useful client components provide a specific kind of user interface. Remember that using a client component means that the real component has been uploaded to the client computer. The common practice is to download the components to the client computer. Of course, users have to wait for the download process, and the client computer must be configured to allow downloads.
In contrast to this, server-side components are executed on the server computer. The server-side component also does some work for the user, but it runs on the server. You have to recognize the difference and code accordingly. The server-side component encapsulates some logic or functionality for your entire application.
When a user uses an application, he will not actually see the server-side components. Most of these components can be contained by the <OBJECT> identity in the ASP script that needs to use the component. You can also include server-side components through the server's CreateObject syntax.
Build a robust component
Not many good materials are used to create robust components. But I'm here to recommend seven key steps that can help you create stable and secure server-side components that can be scaled gracefully and maintain performance. When creating a server-side network application, you need to place stability, security, and performance at the forefront of your mind.
Server-side components should not have a GUI (graphical user interface). Because the server-side component is running on the server, users of the network application are not able to see any conversations that might pop up. Your component needs to be able to communicate with scripts and other components without having to communicate with the user. Avoid all message boxes and any other graphical user interface units. You must develop code that returns results to communicate with state and other module information. If something goes wrong, do not throw an error message or use a message box to return a state variable. The last thing you need to do is lock the busy server waiting for the OK button to be pressed.
Server-side components must not be passed references or passed references to objects. It is common practice to pass control as a parameter to other processes or components. This includes references to other objects, such as recordsets. However, passing references to components on a network can cause a noticeable slowdown, making a busy server more sluggish and network applications performing more slowly in response to user needs.

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.