3 ms·
I’ve done this with retry logic in each concurrent writer (retry if you can’t lock the file with a short timeout) and it works fine enough.
by shrimpx 4y ago
I’ve done this with retry logic in each concurrent writer (retry if you can’t lock the file with a short timeout) and it works fine enough.
- umvi 4y agoIf threads have to contend for db with retry loops, does concurrency actually buy you anything?
- shrimpx 4y agoIt definitely doesn't buy you performance. But I thought you were asking if it's possible, or how difficult it is. A use case might be if you have an existing architecture of N processes and want to collect stuff from them in a central file.