Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 858507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:33:08+00:00 2026-05-15T08:33:08+00:00

I am new to WCF services. I have been working with WCF for over

  • 0

I am new to WCF services. I have been working with WCF for over two months now and love its capabilities. I am using a self hosted WCF in a Windows Service. The binding is netTCP because the client and service are on the same machine. My communication is duplex and I am using a WCF session. With these features, one of the design needs for my application is that UI should always be connected to the service – I am using a separate thread in my UI to always poll the connection status and re-create and open the channel in case it goes to faulted state. Since I have async call backs from the service, the client should always be connected. Here are a couple of questions:

  1. Is it OK to use self host technique knowing that the client and service on the same machine? I used WCF for ease of inter process communication.

  2. Does it make sense to keep this keep alive thread from the client or should I be using some other technique?

I want to get better in using and configuring WCF. is there a good book or online reading material on self hosted WCF services?

Please advice.

Thanks,

Subbu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:33:08+00:00Added an answer on May 15, 2026 at 8:33 am

    I think it’s absolutely fine to use self-hosting with WCF. I’ve implemented many services that are hosted in a Windows Service for example.
    I’m assuming that you’re talking about client and server being hosted in different processes on the same machine? If so, then ideally you should use binary over named pipes in your bindings.

    If client and server and physically in the same process, then you might consider using something like Roman Kiss’s Null Transport to reduce the serialization overhead. His CodeProject article can be found here: http://www.codeproject.com/KB/WCF/NullTransportForWCF.aspx

    To answer point 2, I’ve suggested an alternative approach in my answer to another Stackover question: WCF net.tcp server disconnects – how to handle properly on client side?

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to WCF RIA Services, and have been working with LightSwitch for 4
I am working through a REST services book dealing with WCF. I have been
I am new to wcf programming and I have been working on a small
I've been working in .NET for a while now, but I'm new to WCF.
I have a set of WCF services which I have been using with an
I'm new to WCF data services. I have a quite simple data model. Some
I am brand new to WCF, and have limited experience coding against web services.
I have been working on a WCF service which will return a Base64 encoded
I have been working on this issue for a few days now and can't
Over a year ago I had been working on a WCF service, which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.