Going Async with Channels and go routines

One of the early Feedback received for Social Paster has been that people wanted Login with Facebook functionality. And Heeding the feedback, I have started working on it. Login with Facebook functionality required me to integrate Facebook’s javascript SDK. After user logs in and authenticates the app, I receive a short lived access token and […]

Continue reading →

Communicating between goroutines using channels

We just learned about goroutines. The functions which can be executed in parallel in their own threads. Lets now see how we can establish communication between independent goroutines. The inter thread communication in go is established over channels. Channels also act as synchronization points, meaning if a sender sends something over channel, it would (normally) […]

Continue reading →

Multi threading using goroutines

Almost all modern programming languages have support for multi threading & in almost all of the languages multithreading is fragile, you seem to lose control over your threads who share same memory space. Sharing same memory serves as a communication tool for threads. So producer produces a “thing”.. keeps it in memory, consumer comes and […]

Continue reading →