Tag

Go

0 views collected around this technical thread.

37 Interactive Technology Team
37 Interactive Technology Team
Nov 20, 2023 · Fundamentals

What Are Stack and Heap?

The article explains Go’s stack and heap memory, showing that stack allocations are fast, LIFO‑ordered and compile‑time sized while heap allocations grow upward, require garbage collection, and occur when variables escape a function, urging developers to prefer stack use for better performance.

Garbage CollectionGoHeap
0 likes · 6 min read
What Are Stack and Heap?
37 Interactive Technology Team
37 Interactive Technology Team
Oct 23, 2023 · Backend Development

Investigation of Go HTTP Client Connection Pool Not Reusing Connections

The investigation revealed that the Go http.Client was not reusing connections because response bodies were closed before being fully read, causing the underlying connections to be marked dead; fully reading the bodies restored pooling, eliminated DNS‑resolution timeouts and dramatically lowered query‑per‑second spikes.

Connection PoolDNSGo
0 likes · 9 min read
Investigation of Go HTTP Client Connection Pool Not Reusing Connections
Tencent Cloud Developer
Tencent Cloud Developer
Sep 22, 2021 · Backend Development

A Unified Approach to Error Handling in Go Backend Services

The article presents a unified error‑handling strategy for Go backend services that combines idiomatic internal checks, Go 1.13’s %w wrapping with errors.Is/As, and a compact 4‑character base‑36 hash code system to deliver consistent machine‑readable codes and user‑friendly messages while preserving full log details.

Gobackendcode examples
0 likes · 16 min read
A Unified Approach to Error Handling in Go Backend Services