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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:55:16+00:00 2026-05-12T21:55:16+00:00

I am trying to research error handling paradigms in web service client apps. I

  • 0

I am trying to research error handling paradigms in web service client apps. I haven’t found any good results on Google – perhaps I’m not searching using the right terminology. I will describe my imagined approach to error handling below. Can you name it?

Lets say our application is like iTunes but online. The user runs a JavaScript based client which interacts with a web service through AJAX. One of the things the user can do is to create ‘albums’ and then place ‘songs’ in them. At the API level this is represented by one API call to create a new album, and then one or more calls to associate an existing song with the new album.

Now a traditional client might pause the whole application until it has confirmed the album has been created. To make a snappier client we could optimistically assume the album creation API call will succeed, and immediately display the new album in the user’s list. The user could start dragging songs into the new album even that the API call to create it is still pending behind the scenes. The API will catch up when it gets there.

In the unlikely case of an error (internet connection went down maybe) the app informs the user, pauses and retries the operation until it succeeds or the user quits. If the user quits, the application just forgets all uncommitted operations and the user loses a couple of actions.

What’s the name for this kind of strategy? What’s some good literature on the subject? Internet links?

  • 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-12T21:55:16+00:00Added an answer on May 12, 2026 at 9:55 pm

    I think what you describe can be seen as some kind of “reliable messaging”. I’m not aware that it’s used for ajax based applications, and from my point of view your design has some weak spots:

    Assume you will not have only two API calls but three or more. Imagine how complex your error handling and reporting will become. A call to an API method should be some kind of atomic operation, so you should wait for the response if the future logic depends on it.

    If you want your client to be snappier: Why do you want to execute the “new album” call anyway? If you manage the album updates in the client, you don’t need to create the album before sending the contents of the album.

    A good API for such a client is something different than a “on the server” API. Perhaps it could help you to have a look at Fowlers “unit of work” pattern. It’s for databases, but in my opinion the idea also applies to your setting.

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

Sidebar

Related Questions

I recently started seeing this error message when trying to run any Cucumber tests.
I've been trying to create a Web Service with play framework. I've searched some
I am trying to research available voice recognition engines and SDK for developing a
I am currently trying to research how to use Android with an existing java
Alright, after doing a ton of research and trying almost every managed CPP Redist
I'm trying to do some research on flash objects in browsers. For example memory
Duplicate : https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to
Trying to setup an SSH server on Windows Server 2003. What are some good
I am trying to setup a basic error checking system where it will catch
I am trying to connect to this service from my pc. https://www.epithimies.gr/Consumers/Registration/Proximity.Pulse.Consumers.Registration/Application/WebServiceDescriptors/Registration/GreeceSecured.xml using the

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.