I have an application where I use goroutines, they communicate with each other using channels, and simple calculations. I put it on Kubernetes where I have set 1CPU - if I understand correctly it is one
thread. And here everything is fine. When I add another CPU, however, I do not see a significant acceleration. And if I understand this correctly, what is happening is that the scheduler is splitting goroutines between two threads. And here the golang power goes to hell because you have to jump between threads anyway. Is there any way to have all the goroutines that communicate with each other fired on the same thread? I don't know if I explained well, what I mean. I hope someone can understand it. From what I know in Rust Actix it is possible to do something like this.
----------------------
Ask me how to
design thinking business strategy