I would ask what is the shared resource that you're synchronizing access 
to. If there's a backend database, usually the database API will have some 
sort of thread-safe connection pool, so presumably it's something else.

> Are there any best practices/ talks/ presentations I could refer to?

You haven't added channels to your list of patterns.  I recommend you watch 
and digest "Rethinking Classical Concurrency Patterns" by Bryan C. Mills:
https://www.youtube.com/watch?v=5zXAHh5tJqQ
I found it very much worth the effort to fully understand the code examples 
included.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3ab81ff1-cf24-4321-9628-dd73e40efd46n%40googlegroups.com.

Reply via email to