Reader small image

You're reading from  Kotlin Design Patterns and Best Practices - Third Edition

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781805127765
Edition3rd Edition
Right arrow
Author (1)
Alexey Soshin
Alexey Soshin
author image
Alexey Soshin

Alexey Soshin is a software architect with 18 years of experience in the industry. He started exploring Kotlin when Kotlin was still in beta, and since then has been a big enthusiast of the language. He's a conference speaker, published writer, and the author of a video course titled Pragmatic System Design
Read more about Alexey Soshin

Right arrow

Resilience

Resilience is a fundamental aspect of modern software systems, particularly those that rely on the cooperation of various services. These services can be local (within the same process or machine) or remote, requiring network communication. Such distributed architectures inherently introduce numerous potential points of failure. Resilience refers to the system’s capacity to respond and adapt effectively to such failures.

To explore resilience concepts in practice, it’s necessary to include specific dependencies in your project. For instance, when working with the Arrow library in Kotlin, you can add the following dependency to enable resilience features:

implementation("io.arrow-kt:arrow-resilience-jvm:1.2.1")

The approach to building a resilient system varies based on several factors, such as the feasibility of retrying requests, the criticality of errors, and the need for administrator intervention in case of fatal issues. Arrow doesn...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Kotlin Design Patterns and Best Practices - Third Edition
Published in: Apr 2024Publisher: PacktISBN-13: 9781805127765

Author (1)

author image
Alexey Soshin

Alexey Soshin is a software architect with 18 years of experience in the industry. He started exploring Kotlin when Kotlin was still in beta, and since then has been a big enthusiast of the language. He's a conference speaker, published writer, and the author of a video course titled Pragmatic System Design
Read more about Alexey Soshin