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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:44:07+00:00 2026-06-13T03:44:07+00:00

Imagine situation (this is real situation): There is a WCF client application on laptop.

  • 0

Imagine situation (this is real situation):

There is a WCF client application on laptop.
Laptop is connected by WiFi to internet.
User is doing some stuff (request reply operations) on his laptop at work connected to WCF service.

Then user’s laptop is sleep-down and user go home. At home user wake-up his laptop, connect HSPDA/3G modem (different interface & ip) and want to continue on work in client appliaction. Note that application hasn’t been closed.

User (client application) should be authenticated and if it is possible, communication should be encrypted.

What are the best practices?
Create new proxy for each operation? This should be very slow when initializing net.tcp connection with authentication.

Is solution basicHttp connection (+HTTPS) with InstanceContextMode.PerCall? Note that speed and higher payload is problem.

Or the best solution is something like “wrapper(Func<>)”, which contains while loop until operation is successfully finished (on fail, new connection is created and function is called again).

Thanks you for suggestions

  • 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-06-13T03:44:08+00:00Added an answer on June 13, 2026 at 3:44 am

    I’ve always kept the connection open for as long as the unit of work is necessary. Basically, the connection is only open and available while the application is performing some processing (and those processes require a WCF connection). It may be more overhead to keep reconnecting (and depending on connection speed it may add latency) but it’s also more secure when it comes to having a connection to work with (least probability of failure) and I’m generally saving those resources for other purposes.

    However, this all depends on what the application does; If the client is dumb and the service is doing all the work it may make sense to keep the connection as every function executes a method on the service. Though with that comes some failure checking and re-establishing should the connection be unexpectedly severed.

    Also, netTcp is going to be a lot faster than wsHttp. And I personally haven’t see a lot of latency on establishing a netTcp connection (though I don’t know what kind of authentication you’re doing [mine has generally implemented windows authentication])

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

Sidebar

Related Questions

Just imagine this simple situation: int temperature = 20; is there any possibility to
imagine a situation where you have an application that needs to import data from
Imagine situation like this: You have a working repo in bitbucket - you were
Best way to describe this is explain the situation. Imagine I have a factory
imagine this situation: SetUp in the default MVC3 project, create a new complex type
let's imagine we have this situation: I have a lot of .RData files, which
I have problems with faceting. Imagine this situation. Product can be in more than
This is somewhat of a hypothetical question, but I can imagine this situation coming
Try to imagine a situation there is a div and inside the container there
Imagine following situation: There is a distributed key/value database stored on computer network. One

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.