Original link: https://zdyxry.github.io/2022/11/06/Weekly-Issue-2022-11-06/
article
technology
Write maintainable unit test code
Introduce two single test frameworks, GoConvey and testify. Ginkgo is used more in the company.
October 25, 2022 Partial failure of Cloudflare service
[[CloudFlare]] Recovering the failure, cleared some header information when introducing opentracing, resulting in wrong upstream logic judgment.
Give Your Tail a Nudge
[[Nudge]] Optimizations for [[FCFS]]:
The intuition behind the Nudge algorithm is that we’d like to basically stick to FCFS, which we know is great for handling the extreme tail (high ?), while at the same time incorporating a little bit of prioritization of small jobs, which we know can be helpful for the mean and lower ?.
However, when a “small” job arrives and finds a “large” job immediately ahead of it in the queue, we swap the positions of the small and large job in the queue. The one caveat is that a job which has already swapped is ineligible for further swaps.
Ops to Bots — Smartening incident recovery
By building a Bot to standardize the event processing process, reduce MTTD (Mean time to Detect) and MTTE (Mean time to Engage) time.
The art of the command line
Knowing the use of some tools can improve work efficiency, most of them are commonly used, and a small part can be checked at any time.
In Bash, redirect both standard output and standard error:
some-command >logfile 2>&1
orsome-command &>logfile
. In general, it is a good practice to append</dev/null
to the command in order to ensure that the command does not leave an unclosed file handle on standard input tied to your current terminal.
Python 3.11 micro-benchmark
[[Python]] The 3.11 release notes mention a big performance improvement: “Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a 1.25x speedup on the standard benchmark suite. See Faster CPython for details.”, the author conducted a performance test comparison for some common scenarios.
Why MTTR should be a ‘business’ metric
Ex: A practice from Last9 I love: 2 day auto-delete messages on personal DMs in slack, because you want to control the spread of tribal knowledge; forcing engineers to talk on public slack channels. (Full disclosure: I’m an investor in Last9 )
Backblaze: Buying less reliable disk drives can make financial sense
The need for this model is important to our business if you are interested in optimizing the efficiency of your cloud storage platform. Otherwise, simply buying the most expensive or cheapest drive through a bot would be blind to the expense portion of the ledger.
Murre – the lightweight K8s metrics monitoring tool
Displayed to users by getting metrics directly from [[kubelet]], a lightweight [[kubernetes]] top.
A Visual Guide to SSH Tunnels (with labs)
[[SSH]] Tunnel introduction. (It is an ability to explain things clearly)
Understand dependency injection and how to use wire
Implement [[dependency injection]] via google/wire
.
“Nobody could have known”: inclusive behaviors to counter short-termism | by Elizabeth Ayer | Oct, 2022 | Medium There Is No Shame in Customer-Reported Incidents – The New Stack
Presenting complete and real-time event reports to customers can build user trust. The premise here should not be a P0/P1 level failure.
When the customer encounters a failure, they should: update the problem status as soon as possible, communicate continuously, and take responsibility. “honesty is the best policy”
Golang gRPC error handling – Jiajun’s programming thoughts
Converts custom errors to corresponding business codes through the [[grpc]] middleware, and supports both gRPC and HTTP status codes.
Processing Large Files with Go (Golang) | by snassr | Oct, 2022 | Medium
Use [[Golang]] to process large files in parallel via [[goroutine]] and [[channel]].
HTTP Resource Leak Mysteries in Go – Coder
[[Golang]] Memory leak investigation because response.Body.Close()
is not executed
Life
Leaving domestic SaaS
Most of the time, I dare not use domestic services.
How to communicate effectively as a developer
Empathy, as detailed as possible to describe the content to be expressed clearly in the process of multi-person collaboration. Although I often laugh at myself and write a small composition every day, the advantage brought by the small composition is that I can re-read the relevant replies after a long time, which can quickly understand the context and save a lot of time.
2022-43: Self-regulation at work
When the enthusiasm for work is high, various grand reconstruction schemes and planning functions are always proposed, and the various challenges and difficulties encountered are not a problem; Difficult to muster the courage to take the first step, full of frustration and failure. In order to ease this mood, I chose to put these particularly big plans on hold first, start with some small and specific work, and restore my senses through stable delivery.
When you are in a bad state at work, you can try to adjust from the external environment and the work itself, chat more with your friends and loved ones, and actively adjust and persevere. I wish everyone can get out of the difficult time as soon as possible, and the good days are still to come~
BO ZENG BBOC, My Escondido: The mediocrity of the Internet
Virtual socialization is a huge social experiment, the cost is the passion of the author, and the cost is the life and time of the audience.
Clay – Be more thoughtful with the people in your network.
[[Clay]] is [[CRM]] for individual users. Some people may feel that there is some “utility”, but interpersonal relationships need to be carefully maintained.
book shadow
“100 Go Mistakes and How to Avoid Them”, read 10 this week, recommended reading.
“Edge World Season 1” has a tendency to be unfinished.
There’s a reason why “Lotto Battle”, Korean comedy, and record breaking.
“The Lonely and Splendid God: Goblin”, I finally finished watching it. I have to say that the current level of Korean dramas is really far from 2015/2016.
This article is reprinted from: https://zdyxry.github.io/2022/11/06/Weekly-Issue-2022-11-06/
This site is for inclusion only, and the copyright belongs to the original author.