Welcome Guest Search | Active Topics | Members | Log In | Register

How to efficiently initiate and manage multiple client socket connections using XF.Network Options
CharlesO
Posted: Thursday, October 22, 2009 1:24:31 AM
Rank: Member
Groups: Member

Joined: 4/27/2008
Posts: 6
Points: 18
Location: Lagos, Nigeria
Hi,

Presently i have a solution that uses Socket and SocketAsyncArgs (new from .net35) to open multiple client connections to a TCP resource.

It works fine in testing, but i am worried about the limitations it will face in production with >10000 connected clients. My concerns are:

1) Memory consumption - since each open socket uses up non-shared memory
2) Performance - since we plan on scaling out using several low-end boxes
3) Windows 65k port limitation

Please how can XF.Network be employed in this circumstance.

Regards.

Charles.
admin
Posted: Friday, October 23, 2009 6:07:59 AM
Rank: Administration
Groups: Administration

Joined: 2/15/2008
Posts: 130
Points: 835
Hi,

1. XF.Network consumes less memory then .NET Socket, non-shared memory is most consumed when there are too many pending operations.
2. XF.Network uses less CPU time, which is a better choice for low-end boxes.
3. 65k port limitation is per network interface, so if your box has several network interfaces it may handle more concurrent connections.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.6 (NET v2.0) - 11/14/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.078 seconds.
9 queries (0.041 seconds, 52.56%).

yaf_pageload: 0.005
yaf_topic_info: 0.002
yaf_forum_list: 0.002
yaf_forum_listpath: 0.002
yaf_forum_listpath: 0.001
yaf_post_list: 0.003
yaf_usergroup_list: 0.001
yaf_usergroup_list: 0.024
yaf_active_listtopic: 0.001