Wednesday, September 18, 2024
HomeGolangMaking use of Concurrency to Our Microservice - Getting Assist

Making use of Concurrency to Our Microservice – Getting Assist


Pricey discussion board members,

I’m presently engaged on a microservice that consists of 4 processes. These processes have dependencies between them. Particularly:

  1. Course of 2 is determined by Course of 1.
  2. Processes 3 and 4 depend upon Course of 2.

I want to apply concurrency to reinforce efficiency, however I’m not sure learn how to proceed. Any steerage or greatest practices can be significantly appreciated.

Thanks!

There are various other ways to do that, I can’t give a generic instance as a result of it is determined by your implementation, Go makes it simple to write down right concurrent code with Goroutines, examine slightly about Goroutines and you’ll actually have concepts on learn how to implement this in your service.

I’d advocate the speak “Concurrency will not be Parallelism” by Rob Pike, it’s in a roundabout way associated to your query of “learn how to proceed”, however possibly it makes you perceive the concurrent code principle in Go, and why there’s not only one method to do issues.

(I feel the speak is on the market on youtube, attempt to discover a model that reveals the slides)



1 Like

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments