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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:45:09+00:00 2026-06-06T15:45:09+00:00

If it possible to provide a service to multiple clients whereby if the server

  • 0

If it possible to provide a service to multiple clients whereby if the server providing this service goes down, another one takes it’s place- without some sort of centralised “control” which detects whether the main server has gone down and to redirect the clients to the new server?

Is it possible to do without having a centralised interface/gateway?

In other words, its a bit like asking can you design a node balancer without having a centralised control to direct clients?

  • 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-06T15:45:10+00:00Added an answer on June 6, 2026 at 3:45 pm

    This answer is a general overview to high availability for networked applications, not specific to Erlang. I don’t know too much about what is available in the OTP framework yet because I am new to the language.


    There are a few different problems here:

    1. Client connection must be moved to the backup machine
    2. The session may contain state data
    3. How to detect a crash

    Problem 1 – Moving client connection
    This may be solved in many different ways and on different layers of the network architecture. The easiest thing is to code it right into the client, so that when a connection is lost it reconnects to another machine.

    If you need network transparency you may use some technology to sync TCP states between different machines and then reroute all traffic to the new machine, which may be entirely invisible for the client. This is much harder to do than the first suggestion.

    I’m sure there are lots of things to do in-between these two.

    Problem 2 – State data
    You obviously need to transfer the session state from the crashed machine unto the backup machine. This is really hard to do in a reliable way and you may lose the last few transactions because the crashed machine may not be able to send the last state before the crash. You can use a synchronized call in this way to be really sure about not losing state:

    1. Transaction/message comes from the client into the main machine.
    2. Main machine updates some state.
    3. New state is sent to backup machine.
    4. Backup machine confirms arrival of the new state.
    5. Main machine confirms success to the client.

    This may potentially be expensive (or at least not responsive enough) in some scenarios since you depend on the backup machine and the connection to it, including latency, before even confirming anything to the client. To make it perform better you can let the client check with the backup machine upon connection what transactions it received and then resend the lost ones, making it the client’s responsibility to queue the work.

    Problem 3 – Detecting a crash
    This is an interesting problem because a crash is not always well-defined. Did something really crash? Consider a network program that closes the connection between the client and server, but both are still up and connected to the network. Or worse, makes the client disconnect from the server without the server noticing. Here are some questions to think about:

    • Should the client connect to the backup machine?
    • What if the main server updates some state and send it to the backup machine while the backup have the real client connected – will there be a data race?
    • Can both the main and backup machine be up at the same time or do you need to shut down work on one of them and move all sessions?
    • Do you need some sort of authority on this matter, some protocol to decide which one is master and which one is slave? Who is that authority? How do you decentralise it?
    • What if your nodes loses their connection between them but both continue to work as expected (called network partitioning)?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to provide a service in which one free trial is given
I know that it's possible to implicitly provide asynchronous interaction using: Asynchronous Delegates Asynchronous
Is it possible to create a Silverlight application which can be used to provide
Is it possible to use this Role Provider AspNetWindowsTokenRoleProvider with ASP.NET FORMS Authentication (via
is it possible that my mingw 3.4.5 installation is faulty? or is this provided
I want to provide a Java-based Web Service, but I don't require the features
I may not be asking this in the best way possible but i will
I'm developing a web application that provide a service of online reservation, and I
I have an xmpp/ejabberdb app that uses an external service to provide eventing features,
Does try ... catch(e) provide the same service as On Error Resume Next in

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.