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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:47:25+00:00 2026-05-30T18:47:25+00:00

In a current web application, where the UI cannot be changed to accommodate page

  • 0

In a current web application, where the UI cannot be changed to accommodate page section refreshes rather than an entire page refresh (linking to other pages, etc.). Eventually this would be placed in a non-updating div, however for now, page links will destroy/create the web worker, forcing a new socket connection to be created. What is the drain on the system when having to create new socket connections using Socket.IO?

Given that the entire page will refresh, is this still a good solution?

— UPDATE —

The application for this is for a system-based push notifications like “friend” logins, etc. I see this as something similar to the private message in a chat environment. I would want to broadcast these events, and the client side would manage who actually gets to see the updates. Does sound like the right way of doing it?

  • 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-30T18:47:27+00:00Added an answer on May 30, 2026 at 6:47 pm

    There are a lot of factors at play here. I’ll list a few of them:

    1. What browser is the user using and what is their system like?

      Some browsers and slower machines will take require more overhead to open the socket. That said, this should be pretty marginal with any modern machine and connection.

    2. What transports do you have enabled?

      You can configure Socket.IO to use many different types of transports, including WebSocket, XHR polling, JSONP polling, and even Flash. Which transport actually gets used will be based on what you have configured and on what the user’s browser supports.

      Some of these transports, such as Flash (disabled by default), will obviously require significantly more overhead to setup. Others, like XHR polling, are inherently inefficient, but are largely unaffected by new page requests since you are making multiple poll requests anyway.

    3. What are you doing when a Socket.IO connection is established, and when a disconnect occurs?

      If you have heavy crunching that happens in either of these scenarios, then frequent reconnects are going to be a problem. That said, you really shouldn’t be doing heavy crunching on connects, since that pretty much kills XHR polling.

    4. How frequently are these page refreshes happening?

      Is it only occasionally, when a user clicks a link? Or do you have something that causes the page to refresh extremely frequently?

    5. What kind of hardware and connection do your servers have?

      This is a pretty big variable that is hard to fix down.

    While I can’t give you a definitive answer, hopefully this will help you think about and optimize your scenario. In general, creating new sockets fairly frequently should not be an issue, but I’d recommend performing load or stress testing to see what your particular system can handle.

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

Sidebar

Related Questions

Is HttpContext.Current ever null in a web Application (assuming threads are not being used)?
I have an web application that displays employee birthdays for the current month in
I'm developing a JSF web application, with the current 2.1.7 JSF version . Actually,
window.location.href does not work to save the current web page url as a bookmark.
I'm building a PHP web application and need to know what the current date/time
The current trend in web applications seems to be towards using GET requests for
Description: An unhandled exception occurred during the execution of the current web request. Please
I have a simple class that contains some general information about the current web
I have been reviewing the setup of a current Amazon Web Store implementation to
System.Web.HttpContext.Current.Response.Cookies[ssocookies].Domain = System.Web.HttpContext.Current.Request.ServerVariables[SERVER_NAME].ToString().ToLower(); System.Web.HttpContext.Current.Response.Cookies[ssocookies].Value = tokenID.ToString(); System.Web.HttpContext.Current.Response.Cookies[ssocookies].Path = ~/; System.Web.HttpContext.Current.Response.Cookies[ssocookies].Expires = DateTime.Now.AddDays(7); Now what

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.