nettcpbinding - WCF nettcp traffic optimization -


how optimize traffic on nettcp binding ? 1 data object takes 300-1000 bytes in memory. need transfer near 1 000 000 objects. can create more 1 gb traffic. can length of field name influent on serialized object size ( i.e. xml serializer use names in xml elements ) ? , expect binary serializer used default ? can gzip compression enabled effective on 1gb size , total time pack + network transfer + unpack ? may in case more effective way create custom serializer ?

by default net.tcp binding use microsoft binary xml encoding, dependent on length of xml tags use, list them once. if pass 1000000 objects in 1 wcf message, tags appear once.

but more important wcf uses buffered mode default. means have objects in memory (1 gb), wcf serialize them - let's assume 1 gb. if use reliable sessions 1 more copy of message reside in memory until confirmation receiving side received.

so, not traffic important, local memory footprint significant.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -