Sign in
Log inSign up
Sayed Alesawy

75 likes

·

3.2K reads

6 comments

Ahmed Akef
Ahmed Akef
Jun 19, 2022

Great article as usual. but I have to comments:

1- in go mutex example you have to send the mutex by example in order not to create new instance with each pass which will result in no real locking, more details here: eli. thegreenplace. net/2018/beware-of-copying-mutexes-in-go/

2- (I know this shouldn't be in the article since it is introduction :D) in redis example, the unlock function may result in a problem if one thread is stuck longer than the lock time and when back it deletes the lock, then it may have deleted another thread lock. a solution for this problem is described here: redis .io/commands/set/

3
·
·4 replies
Sayed Alesawy
Sayed Alesawy
Author
·Jun 19, 2022

Thanks Akef. Yes, you're right, will edit the article soon.

·
Abdelaziz Sliem
Abdelaziz Sliem
Jun 20, 2022

@Ahmed Akef, I can't see the 2 links. can you update your comment 😊

·
Sayed Alesawy
Sayed Alesawy
Author
·Jun 20, 2022

Abdelaziz Sliem I think hashnode blocks links comments.

·
Ahmed Akef
Ahmed Akef
Jun 20, 2022

I added spaces in the domain so it can't be identified, try to concatenate the URL parts to get the link Sayed Alesawy

1
·
Mohd Jasir Noor Khan
Mohd Jasir Noor Khan
Jun 23, 2022

Greate article Sayed Alesawy! very informative.

·