Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced Serverless Architectures with Microsoft Azure

You're reading from   Advanced Serverless Architectures with Microsoft Azure Design complex serverless systems quickly with the scalability and benefits of Azure

Arrow left icon
Product type Paperback
Published in Feb 2019
Publisher Packt
ISBN-13 9781788479127
Length 278 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Daniel Bass Daniel Bass
Author Profile Icon Daniel Bass
Daniel Bass
Arrow right icon
View More author details
Toc

Error Handling with Durable Functions


One of the most important benefits of orchestration is the relative simplicity of writing error-handling logic. In an orchestrated distributed system, when one of the steps of a transaction fails, the orchestrator knows about it and can handle it appropriately—by either failing the entire transaction, retrying, or falling back to systems (perhaps using a cache instead). In a choreographed system, on the other hand, the failing system will generally publish an exception message and then each microservice back up the chain has to pass on the error or deal with it. The error-handling logic becomes fragmented and difficult to understand.

Durable Functions allow you to express this error logic simply in code and in a fully serverless fashion. In our application, for instance, we could include a link in the email to the warehouse to state that the order was unsuccessful, and if that is clicked, we could send an email to the customer to regretfully inform them...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image