Skip to main content

Some facts and Figures of WCF

SOAP Message in WCF:
1.       The max size of SOAP message in WCF is 9,223,372,036,854,775,807 bytes. Including metadata.
2.       For actual user data we can use 2,147,483,647 bytes out of it.
3.       With default setting WCF uses only 65536 bytes.
4.       We can change it by setting maxReceivedMessageSize in clients app.config file.   
5.       So selection of data types in Data Contract and Data table will matter a lot!
      “Amazing blog for WCF!”
Data Contract:
1.       By Default WCF can serialize 65536 DataMember.
2.       We can change it to max  2147483646.

Tracing WCF service message:
2.       Run SvcTraceViewer.exe utility from Visual Studio Command prompt.
3.       Open log file in SvcTraceViewer.

Scalability of WCF:
  1. Max Concurrent Calls (default = 16; Max = 2147483647 ) [Per-message]:
 The maximum number of messages that can actively be processed. Increase this value if you want your service to be able to process a larger message load.
  1. Max Concurrent Instances (default = Int32.Max; Max = 2147483647
The maximum number of InstanceContext objects in a service that can execute at one time. What this setting translates into depends on the InstanceContextMode that is set on the ServiceBehaviorAttribute on the service. 
a.      If this is set to "PerSession", then this would represent the maximum number of sessions. 
b.      If this is set to "PerCall", then this is the maximum number of concurrent calls. 
c.       If this is set to "Single", then this value doesn’t really mean anything anymore.
    1. When a message comes into the service and the maximum number of InstanceContext objects already exists, then the message goes into a wait pattern until an existing InstanceContext is closed.  
  1. Max Concurrent Sessions (default = 10; Max = 2147483647) [Per-channel]
The maximum number of sessions that a service can accept at one time.  This setting only affects "session" enabled channels. Once this threshold is reached, no channels will not be accepted to the service. 

Advantages of WCF:

A)     On windows platform if we camper the other technology with WCF :

1.       WCF is 25% - 50% faster than ASP.NET Web Services.
2.       25% Faster than .NET remoting.
3.      WCF will provide the most significant performance gains of almost 4x.
4.       Here is A Performance Comparison of WCF with Existing Distributed Communication Technologies

B)      WCF provides internal Reliable Messaging support.

C)      For Authentication, Authorization, and user Identities WCF provide multiple options. Also provide high level of Security.

D)     WCF provides multiple hosting options:
·         Windows Forms applications
·         Console applications
·         Windows services
·         Web applications (ASP.NET) hosted on Internet Information Services (IIS)
·         WCF services inside IIS 7.0 and WAS on Windows Vista or Windows Server 2007

E)      Managing Data Base Operation in WCF will provide central access for all clients.

Comments

Popular posts from this blog

Drop all Objects from Schema In Postgres

To Drop all objects from Postgres Schema there could be following two approaches: Drop Schema with cascade all and re-create it again.  In some cases where you dont want to/not allowed to drop and recreate schema, its easy to look for objects on current schema and drop them. following script would help to do so, Create function which would do the task and then drop that function too. --- CREATE OR REPLACE FUNCTION drop_DB_objects() RETURNS VOID AS $$ DECLARE  rd_object RECORD; v_idx_statement VARCHAR(500);   BEGIN ---1. Dropping all stored functions RAISE NOTICE '%', 'Dropping all stored functions...'; FOR rd_object IN ( SELECT format('%I.%I(%s)', ns.nspname, p.proname, oidvectortypes(p.proargtypes)) as functionDef     FROM pg_proc p     INNER JOIN pg_namespace ns ON (p.pronamespace = ns.oid)    WHERE ns.nspname = current_schema      AND p.proname <...

Distributed transaction in Oracle ( Over Oracle DBLink)

To fetch the data from one server to and other Oracle server over DBLink, I experienced the following facts of Oracle Distributed transactions: Security issue: -           We cannot create Public synonym for the remote object accessed over Private DBLink of other Database.   -           It’s allowed to create private synonym for remote object, but you cannot grant the access over this synonym to any other schema. If you try to provide the grants to other schema Oracle raises an error:              [ORA-02021: DDL operations are not allowed on a remote database] “In an all you can access remote objects over private DBLink in the same schema where DBLink is created”. Fetching the Ref Cursor at Remote site:                   Let’s say we have two site...

How to Troubleshoot Connectivity Issue with 11gR2 SCAN

I installed the Oracle 11g RAC successfully, But when tried connecting from remote client via SCAN, it used to raise ORA-12537. This is the most common issues that the happens with SCAN listener. And there are few common mistakes that generally  cause this issue. . So, here is how we can troubleshoot the connectivity issues with SCAN, and cases out the possibilities. 1)  Check if Local_listener and remote_listener parameter are set properly on all nodes. 2)  The very common issue is with permissions. SCAN will always be created under grid user (Grid cluserware installation user). Oracle will also create one local listener “LISTENER” during grid infrastructure installation. But if that is not present then always make sure that you create a local listener with grid user. This is required to handover the connection between remote and local listener. 3)  Also “oracle” executable should have given to oracle and grid user i.e. 6751.  Under $ORACLE_HOME/bi...