► Join my Discord community for free education 👉 discord.com/invite/bDy8t4b3Rz ► Become a Patreon for exclusive tutorials 👉 www.patreon.com/anthonygg_ Thanks for watching
Thanks for the video. Channels use mutexes under the hood, so there is still the same problem with scalability but the overhead of using channels is bigger than using mutex (which is low level sync primitive). In situations where you build the web server (like you did in your video) it is always better to use mutexes rather than channels to sync all the goroutines that are trying to access the same memory addresses (maps/slices/struct fields etc) concurrently. In some cases atomics might be more performant. But the scalability is still not good due to CPU cache misses.
A single goroutine still needs to sequentially update the variable from each chan receive - how is that any more performant than a mutex? I.e. there’s still a sequential write regardless of the approach.
I notice u do “ddo” in vim to clear the line and start in insert mode. “cc” might be useful for u, it is equivalent with one less keystroke. Great video!
Very interesting, but I would have liked if you had gone into the mechanics of how this worked, especially to ensure it's not a fluke of design that could be patched out in a future version.
Sometimes I've been using Mutes but not as a structure field but over embedding it. Which method in your opinion is better? Have you made the video on this topic already?
Hi Anthony, i am always getting setting foo printed in order but I don't think here it should be in order, any clue what might be the reason causing that? thank you
► Join my Discord community for free education 👉 discord.com/invite/bDy8t4b3Rz
► Become a Patreon for exclusive tutorials 👉 www.patreon.com/anthonygg_
Thanks for watching
Thanks for the video.
Channels use mutexes under the hood, so there is still the same problem with scalability but the overhead of using channels is bigger than using mutex (which is low level sync primitive).
In situations where you build the web server (like you did in your video) it is always better to use mutexes rather than channels to sync all the goroutines that are trying to access the same memory addresses (maps/slices/struct fields etc) concurrently.
In some cases atomics might be more performant. But the scalability is still not good due to CPU cache misses.
Is only buffered channel uses channel under the hood?
can perfect scalability be at all achieved?
hi, to get data of palyer we need add onother readChan? or how to achieve this ?
A single goroutine still needs to sequentially update the variable from each chan receive - how is that any more performant than a mutex? I.e. there’s still a sequential write regardless of the approach.
I was looking into this topic recently, and this is a perfect video.
You can really tell that you're an expert, and the video is very entertaining.
Thanks man!
5,2k subscribers, keey the content going!
I notice u do “ddo” in vim to clear the line and start in insert mode. “cc” might be useful for u, it is equivalent with one less keystroke. Great video!
Great content 👌
Very interesting, but I would have liked if you had gone into the mechanics of how this worked, especially to ensure it's not a fluke of design that could be patched out in a future version.
As an experienced Elixir/Erlang dev learning Go, this is all sounding *VERY* familiar 😂
Sometimes I've been using Mutes but not as a structure field but over embedding it. Which method in your opinion is better? Have you made the video on this topic already?
thank you for another great video
Thanks for the video. Can you share the code of example? May be on github?
Great , but how we can fix out of order problem in this model ?
What will happen when channel buffer size is overflowed? And how to choose proper buffer size
Hi Anthony, i am always getting setting foo printed in order but I don't think here it should be in order, any clue what might be the reason causing that? thank you
Would have been nice to concisely describe your use-case before starting the coding session.
15:11 this is how the word "Object" sounds in Slavic languages, it's funny to hear you say it)
Im a man of the world 😆
Can you do one about pointers in golang?
I have one in the "how to golang" playlist
That helped me a lot
high value engineer move
Anthony, thanks for the great content. Could you say please what is your origin? I have an argument with my wife😂
Dutch 😆
Thx😅
💪
🤘🤘🤘
Great vid but the amount of typos gave me aneurysm
Me too. Cant blame you
That’s lit! But we need close the channel, doesn’t it?
Yes 😇
so, basic idea is to send all objects through 1 channel
Exactly