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

  • Home
  • SEARCH
  • 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 8139747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:55:54+00:00 2026-06-06T11:55:54+00:00

I am facing a situation regarding hosting WCF on Session Instancing mode.I am encapsulating

  • 0

I am facing a situation regarding hosting WCF on Session Instancing mode.I am encapsulating the actual situation and proposing an example to replicate it…as below.

The service to be hosted is “MyService”. I am using windows service to host it..with http endpoint.
It will need to support 500 concurrent sessions.(Singleton & Percall cannot be done because the Contract is Workflow based…Login…Function1,Function2,Logout..)
I have 4 Servers each with a hardware capability of supporting 200 concurrent sessions.
So I configured the service on One server as a Router(ServiceHost S = new ServiceHost(RouterService)) with hosting path such as “http://myserver/MyService”. I have set a simple load balancing mechanism and applied the Router table to redirect incoming requests to other three servers where the actual service copies are hosted…(“http://myserver/MyService1″,”http://myserver/MyService2″,”http://myserver/MyService3”)

It is still not working…As soon as hits go above 200…communication error starts…I suppose because when 500 concurrent calls are made, then the Router(capability 200) is also required to stay connected to the Client along with the Actual Service Server…(in Session Call mode)..Is my thinking correct??

My question is…

1) Is my approach correct or flawed from concept…Should I ask the Hardware team to set up NLB…
2) Should we redesign the contract specifically to ensure that the requests can somehow be made PerCall…
3) Someone suggested that such systems should be hosted on cloud (Windows Azure)…will need to look at costs involved…but is it correct…
4) What are the best practicies involved while hosting WCF to handle Session Based Calls.

I understand that my question is complex and there would not be one “Correct” answer…but any help and insight will be really appreciated.

Thanks

  • 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-06T11:55:56+00:00Added an answer on June 6, 2026 at 11:55 am

    “Should I ask the Hardware team to set up NLB…” as per you & “Sticky IP cluster” by Shiraz are the closest one can get to host the given scnerio.

    The thing is that WCF sessions are transport based.hence we cannot store these “sessions” on a state server/db like a traditional aspnet.

    WCF4.0 has come up with new bindings such as NetTcpContextBinding, BasicHttpContextBinding, WSHttpContextBinding which could help context re-creation on cross machine environment.But I have no production implementation knowledge to provide example.

    This article should help you to know more…

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

Sidebar

Related Questions

I am facing one problem regarding unlocking the device when Service launched activity when
I am facing a situation and need help. I have two tables: user: user_id
Hello to all I am here facing some situation of detecting url in asp.net
i am facing a new situation. I know someone definitely had faced these type
I am facing a situation at which my development team would like to re-organize
I'm facing a situation where I have dependent objects and I would like to
I am facing a situation that I have problem understanding... I am writing a
I am facing the following situation. I use ajax to communicate with the backend
I am new to VB.net and facing a strange situation. I have a structure
This is a situation I'm generally facing while writing SQL queries. I think that

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.