Microservice design patterns. Singleton design pattern in Golang.
Showing posts from May, 2021
- Other Apps
What is the new function? What is vendor in the go module? Write a producer-consumer program using goroutine. Write a two routine: even and old. The even goroutine should only print even numbers and the odd goroutine will only print odd numbers. The max number will be given as an input parameter. What is the closure function in Golang? How to create it? How to access the shared variable in Golang when multiple goroutines are trying to access it? How to handle race condition? What is the difference between Golang's concurrency with other languages? What is the difference between concurrency and parellism? Which one Golang uses and how? How Golang concurrency is fast.