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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:17:49+00:00 2026-06-13T21:17:49+00:00

I have a client application that connects to a custom server running on EC2

  • 0

I have a client application that connects to a custom server running on EC2 using TCP sockets. The connections between the client and server can last for awhile (multiple hours to a full day).

I am now in the process of evaluating Amazon’s ELB (Elastic Load Balancer), but am worried that due to the dynamically changing IP of the ELB, existing connections will be lost when the IP changes. Can anyone confirm if this is how it works? Is it simply the IP associated with the DNS name that changes? Is that the same thing as the IP of an existing socket connection changing? And ultimately, will the effect of such a change be to sever existing TCP-based socket connections?

EXTRA INFO:

This is not a “standard” http or browser based app – the client app runs in realtime on mobile devices and communicates with the server via a dedicated TCP socket. The server performs continuous logic and communicates back and forth with the client over the lifetime of the connection over this single TCP socket connection. I want to ensure that the client won’t have to re-connect to the server (i.e., destroy/recreate socket connection) when the ELB decides to change IPs (it’s one thing if you legitimately leave wifi/cellular range or something, but I don’t want to disconnect just due to the whims of ELB).

  • 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-13T21:17:50+00:00Added an answer on June 13, 2026 at 9:17 pm

    No. ELB will load balance new incoming connections, but will not tear down and redirect existing questions.

    However, I would question the benefit of using ELB with such system exactly because of this. ELB can’t guarantee fair load on all your instances. Consider the following scenario with two instances:

    1. ELB directs first connection to instance A.
    2. ELB directs second connection to instance B.
    3. ELB directs third connection to instance A.
    4. Instance B connection goes down as the client is done.

    Now you have “heavy” load on A, and no load on B at all. At this point ELB will send new connections to B, to even out the load. And when the A connections go down, you get into the opposite situation – “heavy” load on B, and no load on A.

    ELB could be quite useful when you have multiple instances that serve short requests. For long-term connections, I would use static IPs and not hide those instances behind ELB.

    Note that it might be possible to actually mix both approaches, and have the same instance respond to both ELB-fronted requests and static-IP requests by using two separate domain names pointing to ELB and the static IP.

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

Sidebar

Related Questions

I have a client application (C++, Windows) that opens sockets, connects to a server,
I have a client application that connects to a server. The server uses hibernate
It is possible to have WCF Client that connects persistantly using duplex over net.tcp
I have a client/server application that remotely connects to a server via Java's SSLSocket.
I have a Flex application that connects to a BlazeDS server using the StreamingAMF
I have an client application that connects to the DB via the using clause.
We have a client application that needs to send messages to a server for
I have a client-server application that utilises MSMQ and NServiceBus for messaging. During some
I have an application that runs on a client's server built on a SQL
In a client application I have a DBIx::Class model 'Todo' that can be linked

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.