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 125493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:10:04+00:00 2026-05-11T05:10:04+00:00

We are running a service that requires fast communication with another process. Currently we

  • 0

We are running a service that requires fast communication with another process. Currently we are using WCF NetNamedPipeBinding in buffered mode to invoke methods in the service, which seems to offer the least overhead of the available WCF bindings. Is there a faster way to do this using managed code?

Edit: Bunching requests as suggested below is an option already considered. Really, we’re wondering whether or not there is an alternative API for inter-process comms that outperforms WCF using named pipes.

  • 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. 2026-05-11T05:10:04+00:00Added an answer on May 11, 2026 at 5:10 am

    If you’re using WCF then named pipes are the fastest way to communicate on the local system.

    If you are throwing a whole lot of data around then you could look into streaming your APIs (simply added a System.IO.Stream as the parameter instead of passing an array or string etc.)

    Also for performance, your hosting model is very important as well, in regards to your instance mode of the service. Juval Lowy’s book on WCF is actually really good when you get past the code examples into the meat of his book.

    EDIT: In response to your comment, have a look at the ‘ServiceBehaviour’ attribute you can apply to service definition. (not your IServiceInterface description, but your concrete implementation of your class).

    You can define your code to instance by PerCall, PerSession or Singleton. Default is singleton PerSession(thanks @RichardOD) with concurrency mode set to single and the instanceContextMode set to true, which allow you to host WCF on a windows form and prevents you from shooting yourself in the foot if you don’t understand the instancing.

    Basically if you leave it to the default, you end up with a single threaded, sequentially processed WCF host.

    MSDN has some reasonable information on what each type does.

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

Sidebar

Related Questions

I have a service running that can invoke an external process to modify a
I have a very simple WCF service running that has a single method that
I have a WCF service method that's running in a worker thread I spin
I'm running into a bit of a problem with my WCF service that is
I'm using a thrid party Windows service that handles some automation tasks by running
Let's say I'm running a hosted service that wishes to allow plugins written by
I have an ASP.NET web service running that accepts both HTTP POST and SOAP
I have a web service that is running on IIS (6 or 7, doesn't
I have a small REST service that I am running via the HttpSelfHostServer (ASP.Net
I want to consume a web service that is running on the local machine

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.