Understanding Inner workings of the Golang Channels

A goroutine is a lightweight user-space thread, which is managed by the Go runtime. It executes tasks concurrently, potentially in parallel.

A channel is for communication between goroutines.

In this post, we will delve into the inner workings of the channel and its send/ receive operations.

Making Buffered channels

Let’s first create a…

Comparison between the two python web request packages, the Request, and the Aiohttp

Table of Content

Requests

Requests is a popular HTTP library for making web requests. To make HTTP requests simpler and more human-friendly is the goal of the package.

So let’s start with a simple example.

Simple Request

{'origin': 'xx.xx.xx.xx'}
{'origin': 'xx.xx.xx.xx'}
{'origin'…

Jerry An

Developer in China, AI and machine learning enthusiast. To support me join Medium: https://jerryan.medium.com/membership

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store