Thread safe programming is hard! Let’s nap instead!
If problems just would solve that easily… I need to make some data available in a threaded environment (actix). That’s okay as long as it’s read only. But I need this data to be writable under certain circumstances. Now I fell into the whole Mutex/Sync/Async rabbit hole.
I guess I’ll just use a database instead 😂
How would you do it? Bite your way through and implement some thread-safe data handling? Or just use a database that does that for you out of the box?
Tell me in the comments!