What is the difference between WCF and Web services?
Explain transactions in WCF?
Phases of WCF Transaction:
What is one-way operation?
Explain what is DataContractSerializer?
What is Transaction Propagation? And how WCF support it?
The default value for the TransactionFlow property is "False".
Do all WCF bindings support Transaction Propagation?
What is WCF throttling?
|maxConcurrentCalls||This specifies the maximum number of messages processed across the service host. The default value for this property is 16 (WCF 4.0 is improved to default is 16 * Processor Count).|
|maxConcurrentInstances||This specifies the maximum number of instances of a context object that executes at one time with the service. The default is Int32.MaxValue.|
|maxConcurrentSessions||This specifies the maximum number of sessions at one time within the service host object. The default value is 10 (WCF 4.0 increases that to 100 * Processor Count).|
What is WCF Concurrency and How many modes are of Concurrency in WCF?
WCF concurrency helps us configure how WCF service instances can serve multiple requests at the same time.
Reentrant: The reentrant concurrency mode is nearly like the single concurrency mode. It is a single-threaded service instance that receives requests from the client proxy and it unlocks the thread only after the reentrant service object calls the other service or can also call a WCF client through call back.
Answer: An Instance Context mode defines how long a service instance remains on the server.
Whenever the client sends a request to a WCF service, what exactly happens behind the scenes? Basically after making a client request the WCF service will create a service class instance at the service that will do the operations involved and then it will return the response back to the client. In this request and response process the service instance object has been created in the process.
The WCF framework has defined the following three Instance Context modes:
PerCall: A new instance of the service will be created for the request from the same client or a different client, meaning every request is a new request. In this mode no state is maintained.In per-call service, every client request achieves a new dedicated service instance and its memory consumption is less as compared to other types of instance activation.
Per-Session Service: A new Instance will be created for every new client session and the scope of that object will be the scope of that session.
Singleton Service: A single instance will be created for the service object that will take care of all the requests coming from the same client or a different one.
By decorating the service with a service behavior, an Instance Context mode can be set.