locked
How to handle Exceptions efficiently in Azure Web applications without affect performance? RRS feed

  • Question

  • How to handle Exceptions efficiently in Azure Web applications without affect performance? Best Practices for effective exception handling on azure?
    Friday, July 12, 2013 6:39 AM

Answers

  • advantages are

    • simple and easy to use
    • easy to configure and maintain
    • extendible
    • robust
    • high availability of community support

    disadvantages

    • Slow - if not used properly
    • sometimes an overkill for a small logging job
    • not lightweight

    depending on your scenario we can dig in more detail to what makes most sense...

    here is a link to MSDN article describing in what scenarios error handling application block is best suited for 

    let me know if you need further help

    --------------------------------------------

    Please mark the post as answered if it helped


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/


    • Edited by vishalishereMVP Monday, July 15, 2013 6:06 PM link to msdn article
    • Proposed as answer by vishalishereMVP Monday, July 15, 2013 7:01 PM
    • Marked as answer by Dino He Friday, July 19, 2013 6:23 AM
    Monday, July 15, 2013 6:03 PM

All replies

  • Hi,

    I think Azure doesn't provide any smart solution for handling exception. It is based on what service or application you do. Azure has the diagnostics feature for collecting error log to storage for further troubleshooting. The topic is too big. have a look at these ways to handling exception in some services:

    http://gauravmantri.com/2012/12/26/storage-client-library-2-0-exception-handling/

    http://blog.tylerdoerksen.com/2012/04/25/wcf-error-handling/

    http://consultingblogs.emc.com/shailensukul/archive/2011/12/22/elmah-exception-logging-with-azure.aspx

    http://www.windowsazure.com/en-us/develop/net/best-practices/troubleshooting/

    Thanks,


    QinDian Tang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, July 12, 2013 8:11 AM
  • Thanks mate, Could you please advice on How to make Application log for Support people in windows azure or any web application.

    Friday, July 12, 2013 10:26 AM
  • depends on whos your target users, for a dev kinda user i would put all the information that can help pin point a issue,

    for a call center support person, i would abstract the information and would put something that is more relevant to his/her role

    the links QinDian provided are really helpful, take a look


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    Friday, July 12, 2013 5:34 PM
  • By Application Log, could this mean the Windows Application Event Logs? Just in case..
    Saturday, July 13, 2013 5:24 AM
  • One more question related to this. What is the advanytages/disadvanatages of using Exception Handling Application Block  in applications?

    Monday, July 15, 2013 11:38 AM
  • advantages are

    • simple and easy to use
    • easy to configure and maintain
    • extendible
    • robust
    • high availability of community support

    disadvantages

    • Slow - if not used properly
    • sometimes an overkill for a small logging job
    • not lightweight

    depending on your scenario we can dig in more detail to what makes most sense...

    here is a link to MSDN article describing in what scenarios error handling application block is best suited for 

    let me know if you need further help

    --------------------------------------------

    Please mark the post as answered if it helped


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/


    • Edited by vishalishereMVP Monday, July 15, 2013 6:06 PM link to msdn article
    • Proposed as answer by vishalishereMVP Monday, July 15, 2013 7:01 PM
    • Marked as answer by Dino He Friday, July 19, 2013 6:23 AM
    Monday, July 15, 2013 6:03 PM