Back to Security Pattern Catalog




Unique Location for each Write Request


Classification Key : Core Security, Tampering

Problem

Many processes need to add information to a shared resource concurrently. How do we ensure that multiple write operations are handled correctly and even if there is a crash no trace is left of the failure?

Solution

Create unique files for each write request. Thus, different processes are never writing on the same file at the same time.

Known Uses

qmail queue and local mailbox creates unique files for each incoming mails.

Related Patterns

Checkpointed System

Source

Hafiz et. al.

Tags

Locking, Atomic


 

Last modified: May 05, 2012

Conceived and Maintained by: Munawar Hafiz