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!

Comments

Adding comments is only possible via Instagram directly, sorry. If you're okay with visiting Instagram, you can use the link to my post .

  1. #code #coder #coding #codinglife #_devcommunity #creativecoding #programming #programmer #programminglife #programmerrepublic #dvlpr #geek #programmerslife #programmers #art #artwork #instagood #instadaily #engineering #engineeringlife #softwaredeveloper #softwareengineer #webstagram #webdevelopment #webdeveloper #webdev @codeclique @comment_sense @lovecoders @coding @worldcode @coderlifes @programmerrepublic @thedevlife @peoplewhocode @developerstuff

    1. Sounds like the perfect use case for a db