mghio’s Blog

Go Concurrency Model Goroutines

Original link: https://www.mghio.cn/post/fec34d85.html foreword Goroutines are the main concurrency primitive of the Go language. It looks very much like a thread, but it is cheap to create and manage compared to threads. Go efficiently schedules goroutines onto real threads at runtime to avoid wasting resources, so you can easily create large numbers of goroutines (e.g.

Go Concurrency Model Goroutines Read More »

Packet capture analysis TCP handshake and wave

Original link: https://www.mghio.cn/post/216a8d02.html foreword The first thing to be clear is that TCP is a reliable transmission protocol , and all its characteristics are ultimately for this reliable transmission service. I have seen many articles on the Internet about the三次握手of TCP connection and the四次挥手of disconnection, but they are all too theoretical. After thinking about it

Packet capture analysis TCP handshake and wave Read More »

The routine of @EnableXXX annotation in Spring

Original link: https://www.mghio.cn/post/aa9d18bf.html foreword There are many useful functions in the Spring framework, you don’t need to write a lot of configuration code, just add a few annotations to open. One of the important reasons is those @EnableXXX annotations, which allow you to quickly enable functions such as transaction management (@EnableTransactionManagement), Spring MVC (@EnableWebMvc) or

The routine of @EnableXXX annotation in Spring Read More »