Nagle's Algorithm
Nagling refers to concatenating several small buffer messages. It increases the efficiency of a network application system by decreasing the number of packets that must be sent. Nagling can be thought of as a bulk operation on the network.
Note
This feature is also available in NCache Professional.
Using Nagling Algorithm
By default, Nagling is enabled. You can turn it off in NCache Service's config file as follows:
<add key="NCacheServer.EnableNagling" value="false"/>
Nagling combines all the available messages present in a queue whose combined size is less than the Nagling threshold. Size is specified in terms of Kilobytes. By default, it is 500 Kb. You can specify it in NCache Service's config file as follows:
<add key="NCacheServer.NaglingSize" value="500"/>
Note
If you are using cache as InProc, you need to specify the lines of code mentioned above in the config.exe file of your application.
See Also
Heartbeat
Bind Cluster and Client/Server IP with Multiple NICs
Communication Reliability
Dual Socket