<commit_before>---
layout: post
title: The importance of timeouts
author: piotr
hidden: false
tags: server request timeout query resiliency spring boot
comments: true
---

[Timeouts](https://en.wikipedia.org/wiki/Timeout_(computing)) are not an exciting thing to talk about. They do not add immediately perceivable value. They are difficult to ~~guess~~ get right and force one to [consider problems that are hard to solve](https://en.wikipedia.org/wiki/Byzantine_fault_tolerance#Byzantine_Generals.27_Problem). In fact, in my experience, the timeout is only ever considered when our software stops working or is about to. That is an enormous shame since, in my opinion, carefully applied timeouts can vastly improve software resiliency. 

![Man with a wrist clock](/images/the-importance-of-timeouts/man-clock.jpeg)

## An example application<commit_msg>Hide the post until reviewed<commit_after>---
layout: post
title: The importance of timeouts
author: piotr
hidden: true
tags: server request timeout query resiliency spring boot
comments: true
---

[Timeouts](https://en.wikipedia.org/wiki/Timeout_(computing)) are not an exciting thing to talk about. They do not add immediately perceivable value. They are difficult to ~~guess~~ get right and force one to [consider problems that are hard to solve](https://en.wikipedia.org/wiki/Byzantine_fault_tolerance#Byzantine_Generals.27_Problem). In fact, in my experience, the timeout is only ever considered when our software stops working or is about to. That is an enormous shame since, in my opinion, carefully applied timeouts can vastly improve software resiliency. 

![Man with a wrist clock](/images/the-importance-of-timeouts/man-clock.jpeg)

## An example application
{'fraction_non_alphanumeric': 0.08004640371229699, 'fraction_numerical': 0.002320185614849188, 'mean_word_length': 5.1387900355871885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3392857', 'n_tokens_mistral': 467, 'n_tokens_neox': 448, 'n_words': 205}