I am developing a LAN based Counter Billing Application with around 10 clients. Basically 1 server will have SQL-Server Express installed where all billing details will be stored. So all 10 clients will be communicating with server now & then for product information and billing. I am novice in WCF and read some articles on WCF from various sources. What I think NetTCPBinding will be good for this purpose!!!. My question is “Does NetTCPBinding is good for this purpose?”. I want to keep it simple. One more thing do I need to write different WCF services for client app PC and Server app PC for communication?
If my question sounds confusing then in simple words I want to insert and updates SQL-Server 2005 tables (Installed on Server) from my LAN Client PCs for billing purpose. How I can do that using WCF…
thanks
For a LAN based application, I’d strongly recommend
netTcpBindingsince it’s significantly faster than HTTP based bindings (because it encodes the messages in a binary instead of text format), and it supports all the features like sessions, streaming etc. you might ever want.The only minor wrinkle is that you cannot host your WCF services in IIS6 (Win Server 2003/2003 R2) if you’re using
netTcpBinding– you either need to use IIS 7 (Win Server 2008 or 2008 R2) or self-host the WCF service in e.g. a Windows service (works on any Windows Server OS version).Juval Lowy has a really good and simple flow chart in his Programming WCF Services book (the standard book for medium to advanced topics) which helps you easily pick the most appropriate binding – find it in this article by Juval.