Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 01:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WCF NamedPipeBinding for DB Server

Discussion on WCF NamedPipeBinding for DB Server within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 67
Join Date: Aug 2014
Posts: 1,323
Received Thanks: 928
WCF NamedPipeBinding for DB Server

I've implemented a Database Server which basically handles all the IO from the Game and Login server.

If I run it in debug mode I get 1100 ops per second max, on release build I get 2600 ops per second max per channel.

I can spawn 1.5 channels per cpu core until the performance does not increase anymore. So I'm having 12 channels and 32k ops per second on the release build.

Is there a way to further improve the ops?


PHP Code:
public static void CreateDataExchangeInstance()
        {
            var 
DataExchangePipe = new NetNamedPipeBinding ReceiveTimeout TimeSpan.MaxValue };
            
DataExchangeHost = new ServiceHost(typeof(DataExchange), new Uri("net.pipe://localhost"));
            
DataExchangeHost.AddServiceEndpoint(typeof(Interfaces.IDataExchange), DataExchangePipe"DataExchange");
            
DataExchangeHost.Faulted += DataExchangeHostFaulted;
            
DataExchangeHost.Closed += DataExchangeHostClosed;
            
DataExchangeHost.Open();
        } 

for each player, I can get a maximum of 21 ops per second.
Xio. is offline  
Old 10/20/2014, 10:50   #2


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
Not with this method. These pipes use memory mapped files under the hoods and they are the fastest way for two processes to communicate in WCF. I`d still consider using a socket based approach instead of pipes though, but that depends solely on your circumstances and setup.
KraHen is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Server Hosting by ZiriX // Root Server,V-Server und Minecraft Server
12/30/2013 - Web Host / Server Trading - 2 Replies
http://epvpimg.com/3DOAd.png http://epvpimg.com/G72ig.png http://epvpimg.com/hKT5g.png http://epvpimg.com/YoNCc.png



All times are GMT +1. The time now is 01:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.