Improved. NET application performance and Scalability (iii)-remoting performance

Source: Internet
Author: User

Design Considerations

Use the. NET remoting for communicating between application domains process.

Use. NET remoting to communicate between application domains within the same process.

Choose the right host.

Choose the right host (meaning Iis,windows service, etc.).

Choose the right activation model.

Select the correct activation model (client activation, server activation, etc.).

Choose the right channel.

Choose the right channel (Tcpchannel,httpchannel, etc.).

Choose the right formatter.

Choose the right formatter.

Choose between synchronous or asynchronous communication.

Choose between synchronous and asynchronous communication.

Minimize round trips and avoid chatty interfaces.

Minimize unnecessary back and forth and avoid long-winded interface (may not be accurate translation).

Avoid holding state in memory.

Avoid maintaining state in memory.

Activated

Use client-activated objects (CAO) is where you need to the lifetime.

Use client-activated objects only when you need to control the lifecycle.

Use the SingleCall Server activated objects (SAO) for improved scalability.

Use the SingleCall server-side activation object to improve scalability.

Use singleton where you need to access a synchronized resource.

Use the singleton activation mode when you need to access a synchronized resource (Singletion is to say that no matter how many times the request server is an object executing the call).

Use singleton where you need the to control lifetime of server objects.

Use the Singletion method when you need to control the lifecycle of the server object (MarshalByRefObject InitializeLifetimeService methods can be rewritten).

Use appropriate state management to scale the solution.

Use proper state management to improve the scalability of your solution (scale don't know how to translate here).

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.