From the course: Building Event-Driven Applications In Go

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Error handling

Error handling

- [Instructor] As with other forms of application development and software engineering, error handling is necessary to consider, because whatever can go wrong will go wrong, and it's best to just prepare for it. This is what we're looking at in this video. Event-driven applications are asynchronous in operation, and because of that, particular care must be taken to ensure smooth application flow in the very, very, very possible event that there are errors. You see, the asynchronous nature of event-driven applications brings unique challenges to error handling, such as propagating the errors and maintaining consistency as well as achieving fault tolerance. So let's get into the best practices and techniques for handling errors in event-driven applications. To start, I will share this as the first one, consistent error handling strategy. Define a consistent error handling strategy across your application, and this includes categorizing your errors so that you have a strategy for…

Contents