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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:30:23+00:00 2026-05-23T12:30:23+00:00

How should one carry out web services call in ColdFusion reliably? How do you

  • 0

How should one carry out web services call in ColdFusion reliably?

How do you handle situations like the remote server is down / busy? and lead to page timeout?

How to implement retry every x seconds?

Should remote calls be called in an Async manner, and if so, how to do callbacks?

Maybe ColdFusion 10 <cfjob> and Closure support will addresses these in a cleaner, more straight forward manner. However, how to address these in CF9?

Thank you

  • 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-23T12:30:24+00:00Added an answer on May 23, 2026 at 12:30 pm

    We do a lot of integration with third parties usually over REST or SOAP, or ActiveMQ.

    Generally we deal with all web service calls in the same way – if they fail (through a timeout or other error) we throw an exception by setting the cfhttp attribute throwOnError=true. This gets caught by high level application exception handling which emails or development team so they can investigate.

    The only exception to this approach is when calling a ‘trivial’ web service from a CFM page that is not critical – for example to get some presentation data. We do not want a timeout on this call to bork the whole page, so we set the throwOnError=false (the default) and check the status message / code for the error. We email the error to the development team to investigate but we just continue with page processing.

    We tend to avoid retries, as we know most services will be called again by another request soon, and the where do you draw the line? 1 retry? 100 retries? How is this affecting the user? I also find the logic about retries can be messy at best and usually ugly and repetitious.

    Another approach with web services whose results are used on presentation pages is to call them from a scheduled task or cfthread. This is a good approach if you can persist the result in a cache, database or otherwise and get your code to hit the persistent store for the data rather than the web service itself. This has the dual effect of making sure the page is fast (if your web service call is delayed) and that any errors do not affect the user. Again any failure can be reported for investigation.

    We’ve seen a web service on a busy presentation page bring down the server because of timeout that was too long (I would aim for around 1-3 secs max). All the running requests were used up dealing with the web service and then the queuing started. Not pretty. Learn from that mistake and use a very fast timeout or else just don’t put the web service there as I mentioned before.

    I don’t believe it is possible to do asynchronous calls/callbacks. You might be thinking of Node.js 🙂

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

Sidebar

Related Questions

When should one use a scripting language over a more verbose, compiled language like
In what situations should one catch java.lang.Error on an application?
when overriding the loadView method in UIViewController, should one call [super loadView] in the
When detecting collision between sprites using color alpha component, should I carry out in
Should one create unit tests involving IO? Ie, testing a class method for serializing/deserializing
Where should one go to be kept updated on all of the security flaws/problems
How should one ensure correctness when multiple processes access one single SQLite database file?
How should one split up the controllers in an ASP.NET MVC site? For example,
Why should one go for Windows Installer XML (WiX) when we have in built
How much should one DataSet represent? Using the example of an ordering system: While

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.