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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:38:47+00:00 2026-05-16T10:38:47+00:00

What is the best workflow taken when connection error occurs. Let say we have

  • 0

What is the best workflow taken when connection error occurs.
Let say we have a client that connects to the middle tier.

class MyClient{   
...   
  void   callServer(){  
    try{  
      middletier.saveRecord(123);  
    }catch(...){  
      // log the error  
      // what to do next (notify the user, take the same step again)?  
      // reinitialize connection ?  
    }  
  }  
}

What to do if the connection error occured (time out, broken connection …)

Should I notify the user that the connection has a problem and to try again?
Can something be done automatically, and transparent for the user ?

All I like is, not to bother the user with errors and then to tell the user what to do next.
So what is the best workflow for handling such errors ?

  • 1 1 Answer
  • 2 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-16T10:38:48+00:00Added an answer on May 16, 2026 at 10:38 am

    It depends… If the action is caused by user interaction inform the user. The user can decide how often he wants to retry. The code may retry by itself but if it is a timeout than the user may wait for a several minutes (or abort the action not getting any feedback).

    If it is a background task, try again after some delay (but not infinitely – eventually abort the action). you may reinitialize the connection to be sure, that depends on the used technology and if you use connection pooling.

    Of course if you want to invest more time you can handle different errors differently. First of all, differentiate permanent errors (a retry in a few minutes wouldn’t help) from intermittent errors (could be OK the next time). For instance, with a broken connection you could retry with a new one (maybe the firewall dropped an open connection because of inactivity). But you probably can’t do anything about a time out (maybe a network configuration problem) or “HTTP 404 Not found” (assuming you can’t change the URL you use for a HTTP call).

    You could gather all this knowledge in “diagnosis&repair” component.

    I also recommend reading “Release it!”.

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

Sidebar

Related Questions

What is the best way to get error messages from a WF4 workflow back
Best to describe this in code... I have this public class A<T> { public
Best to use an example to describe the problem. Lets say I have a
We have a web app (ASP) that has workflow in it for management to
Best explained with code I think, this is just a simple example: public class
Best practices or tools for installing a SQL Server database I have a SQL
I have some calls that must execute sequentially. Consider an IService that has a
What is the best practice to carry out following workflow: $(#myDiv).hide(); $.getJSON(url, function(data) {
I have a problem that has just come up with a colleague of mine
We have developed a custom visual studio workflow for SharePoint MOSS. It creates tasks

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.