PrepAway - Latest Free Exam Questions & Answers

3 Comments on “Which instance mode should you use?

  1. Anh Ta says:

    https://www.codeproject.com/Articles/86007/ways-to-do-WCF-instance-management-Per-call-Per

    When should you use per call, per session, and single mode?
    Per call

    You want a stateless services.
    Your service holds intensive resources like connection objects and huge memory objects.
    Scalability is a prime requirement. You would like to have a scaled out architecture.
    Your WCF functions are called in a single threaded model.
    Per session

    You want to maintain states between WCF calls.
    You a scaled up architecture.
    Light resource references.
    Single

    You want share global data through your WCF service.
    Scalability is not a concern.




    0



    0

Leave a Reply