Instance Management

  1. Prefer the per-call instance mode when scalability is a concern.

  2. If setting SessionMode.NotAllowed on the contract, always configure the service instancing mode as InstanceContextMode.PerCall.

  3. Do not mix sessionful contracts and sessionless contracts in the same service.

  4. Avoid a singleton unless you have a natural singleton.

  5. Use ordered delivery with a sessionful service.

  6. Avoid instance deactivation with a sessionful service.

  7. Avoid demarcating operations.

  8. With durable services, always designate a completing operation.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.196.175