3 ms·
With files, you can go quite a long way with a good naming scheme. The Maildir/ protocol/format is probably the best known and most widely used example of such
by maw 18y ago
With files, you can go quite a long way with a good naming scheme. The Maildir/ protocol/format is probably the best known and most widely used example of such, but it isn't difficult to imagine something more elaborate based on the same underlying ideas.
- ajross 18y agoMail in general (including maildir) is actually a classic example of how hard synchronization is even in the file regime. Take a look at the source to something like procmail sometime. It's a huge rats nest of locking abstractions. It's not something you can solve with file naming. That's just a technique for avoiding collisions.
- bayareaguy 18y agoIndeed. I've found it worthwhile to ask interview candidates how they would implement the equivalent of the maildir protocol - http://www.qmail.org/man/man5/maildir.html http://www.qmail.org/man/man5/maildir.html