Best (simplest) way to share data between processes

Gordinator gordinator at gordinator.org
Sat Jul 6 15:03:15 EDT 2024


On 06/07/2024 12:32, Stefan Ram wrote:
>    But why overengineer? If you feel comfortable with the file
>    solution, go for it! The only drawback might be that it's a
>    bit slower than other approaches.

I absolutely agree. Overengineering is generally a bad idea because 
you're using a complex solution to solve a simple problem, which leads 
to unexpected breakage.

The file solution is perfectly fine, and file locks are used by really 
important software (i.e package managers and such) because its 
simplicity makes it almost never fail.

So yeah, go for it!



More information about the Python-list mailing list