Enterprise Services (.NET 1.1) Performance Guidelines
From Guidance ShareJump to navigationJump to search
- J.D. Meier, Srinath Vasireddy, Ashish Babbar, and Alex Mackman
- Use Enterprise Services only if you need to.
- Use library applications if possible.
- Consider DLL and class relationships.
- Use distributed transactions only if you need to.
- Use object pooling to reduce object creation overhead.
- Design pooled objects based on calling patterns.
- Use explicit interfaces.
- Design less chatty interfaces.
- Design stateless components.
Loosely Coupled Events
- Consider the fire in parallel option.
- Avoid LCE for multicast scenarios.
- Use Queued Components with LCE from ASP.NET.
- Do not subscribe to LCE events from ASP.NET.
- Return objects to the pool promptly.
- Monitor and tune pool size.
- Preload applications that have large minimum pool sizes.
- Use Queued Components to decouple client and server lifetimes.
- Do not wait for a response from a queued component.
- Optimize idle time management for server applications.
- Always call Dispose.
- If you call COM components, consider calling ReleaseComObject.
- Use a trusted server model if possible.
- Avoid impersonation in the middle tier.
- Use packet privacy authentication only if you need encryption.