Temporal Blog 09月30日 19:13
四门新课程发布,教你如何使用SDK制定错误处理策略
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

今天,我们很高兴地宣布四门新的动手培训课程即将推出。每门课程都涵盖了如何使用特定SDK构建错误处理策略的内容。为什么要参加“构建错误处理策略”培训?错误时有发生,当你遇到错误时,必须知道如何处理它们。正确识别和处理错误对于应用程序的成功至关重要。有了这些知识,你可以开发出耐用、稳定的应用程序,你可以依赖它们。这些课程涵盖了三个主要的学习目标,你将在完成课程后能够做到。1. 推荐一个错误处理策略。你将了解Temporal如何表示和处理错误。到本课程结束时,你将了解平台错误和应用错误之间的区别,以及Temporal如何处理这两种错误。此外,你还将掌握超时和失败之间的区别,以及它们如何影响Temporal应用程序。你将确定何时适合失败活动执行,如何失败工作流执行,以及何时适合执行任何一种。这些决定会严重影响Temporal应用程序的可靠性和效率。2. 实施一个错误处理策略。一旦你知道Temporal如何处理错误,你就可以准备好实施处理失败的策略。这包括创建自定义重试策略来重试失败,将重试策略与活动执行相关联,以及当重试不是解决方案时如何处理这些失败。你还将在错误不重试且应传播到调用堆栈的情况下识别何时适合重试。3. 集成适当的机制来处理各种类型的错误。最后,你将使用各种技术和模式来处理未按计划进行的工作流执行。你将实施活动心跳以跟踪长时间运行的活动进度。你将决定何时适合取消工作流或终止它。你还将使用补偿操作来使用Saga模式在工作流执行失败后恢复状态。谁应该参加这门课程?这门课程适合任何Temporal应用程序开发人员。认真地说,代码会失败,你必须知道如何处理它。我们认为这门课程是构建Temporal应用程序开发人员的基础。由于本课程涵盖的主题与Temporal 101:介绍Temporal平台相关,因此我们建议您首先完成该课程,以及我们的Temporal 102:探索耐用执行课程,该课程涵盖了与成功实施Temporal应用程序相关的其他主题。如果你准备好构建错误处理策略,请按照下面的链接之一开始免费动手培训。下一步是什么?教育团队正在我们的“开发者轨道”课程上取得进展。我们下一个里程碑是创建关于我们最新SDK .NET的课程材料,并将其与其他SDKs保持一致。Replay 2025的与会者将有机会亲身体验这些.NET课程!请留意注册即将开放。

📚 这四门新课程涵盖了如何使用特定SDK构建错误处理策略的内容。每门课程都专注于一个SDK,旨在帮助开发者掌握在不同平台上处理错误的方法。

🚫 错误处理对于应用程序的成功至关重要。课程强调了正确识别和处理错误的重要性,以开发出耐用、稳定且可靠的应用程序。

🎯 课程设定了三个主要学习目标:推荐错误处理策略、实施错误处理策略以及集成适当的机制来处理各种类型的错误。这些目标旨在全面提升开发者的错误处理能力。

🔄 课程内容包括理解Temporal如何表示和处理错误,区分平台错误和应用错误,以及掌握超时和失败之间的区别。这些知识有助于开发者做出更明智的决策,提高应用程序的可靠性。

🔗 开发者将学习如何创建自定义重试策略,将重试策略与活动执行相关联,以及处理那些不适合重试的错误。这些技能对于构建健壮的应用程序至关重要。

Today, we are delighted to announce the availability of four new hands-on training courses. Each course covers how to craft an error handling strategy using a specific SDK:

Why Should I Take the “Crafting an Error Handling Strategy” Training?#

Errors happen. And when they do, you have to know how to handle them. Properly identifying and handling errors is crucial to the success of your application. With this knowledge, you can develop durable, stable applications that you can rely on.

What Do These Courses Cover?#

We have three main learning objectives that you will be able to do once you complete the course.

1. Recommend an error handling strategy#

You’ll acquire an understanding of how Temporal represents and handles errors. By the end of this course, you’ll understand the difference between platform and application errors, and how Temporal deals with both. Additionally, you’ll grasp the distinctions between timeouts and failures, and how they affect Temporal applications. You’ll determine when it’s appropriate to fail an Activity Execution, how to fail a Workflow Execution, and when it’s appropriate to do either. Decisions like these significantly impact the reliability and efficiency of your Temporal applications.

2. Implement an error handling strategy#

Once you know how Temporal handles errors, you’ll be ready to implement strategies for handling failures. This includes creating custom Retry Policies to retry failures, associating Retry Policies with Activity Executions, and how to handle these failures when a retry isn’t the solution. You’ll also recognize when it’s appropriate for an error to not be retried, and instead propagated up the call stack.

3. Integrate appropriate mechanisms for handling various types of errors#

Finally, you’ll handle Workflow Executions that don’t go according to plan with a variety of techniques and patterns. You’ll implement Activity Heartbeating for your long-running Activities to keep track of their progress. You’ll decide when it’s appropriate to cancel a Workflow or terminate it. And you’ll use compensating actions to restore state following a failure in the Workflow Execution with the Saga pattern.

Who Should Take this Course?#

This course is appropriate for any Temporal application developer. Seriously, code fails, and you have to know how to handle it. We believe this course is foundational for every developer building Temporal applications. Because the topics covered in this course refer to Temporal 101: Introducing the Temporal Platform, we recommend that you first complete that course, as well as our Temporal 102: Exploring Durable execution course, which covers other topics related to successfully implementing of Temporal applications.

If you're ready to craft an error handling strategy, follow one of the links below and begin your free hands-on training:

What's Next for Temporal Training?#

The Education Team is making progress on our “developer track” courses. One of our next milestones is to create course material about our newest SDK, .NET, and bring it up to parity with our other SDKs.

Replay 2025 attendees will have a first hand opportunity to take these .NET courses live!, Be on the lookout for registration to open.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

错误处理 SDK Temporal 培训课程 开发
相关文章