Tag: process

One Way Communication with Pipe in Linux

Pipe uses kernel buffer to store data. It is a unidirectional read/write buffer and connects two processes. Each end (read or write) Pipe mimics a file operation. A process can choose to read or write (but not both). The processes have to use at least two pipes for two-way communication. Example Communication Parent process can talk to a child with…

Pre-Deployment Checklist for Developers

Handled all error conditions? Have you checked each error and handled or propagated upstream? Returned appropriate error code Please return proper error code & detailed error message to callers. msg := fmt.Printf(“[fname] failed in Redis Set err=%s ret=%d”, err, ret) ret errRedis Added logs for each failure It will help you narrow down the trouble code. Successful build with lint…