concept thread in category security

This is an excerpt from Manning's book API Security Starter.
When designing an object, you need to decide whether it should be mutable or immutable. Mutability allows state to change; immutability prevents it. This might seem of minor importance, but from a security perspective, it makes a big difference. Immutable objects are safe to share between threads and open up high data availability—an important aspect when protecting a system against denial of service attacks. Mutable objects, on the other hand, are designed for change, which can lead to illegal updates and modifications. Often, mutability is introduced because frameworks require it or because it seems easier. But choosing mutability over immutability can be as expensive as it is dangerous. To illustrate, we’ll walk through an example where the mutable design of a webshop causes security problems that are easily solved using immutability.

This is an excerpt from Manning's book Secure by Design.
When designing an object, you need to decide whether it should be mutable or immutable. Mutability allows state to change; immutability prevents it. This might seem of minor importance, but from a security perspective, it makes a big difference. Immutable objects are safe to share between threads and open up high data availability—an important aspect when protecting a system against denial of service attacks. Mutable objects, on the other hand, are designed for change, which can lead to illegal updates and modifications. Often, mutability is introduced because frameworks require it or because it seems easier. But choosing mutability over immutability can be as expensive as it is dangerous. To illustrate, we’ll walk through an example where the mutable design of a webshop causes security problems that are easily solved using immutability.