BetterDev #179 - Mitigate Connection Leaks in Production via Proxies
Better Dev #179 Dec 07, 2020
Hi everyone, Welcome to issue #179. Let’s sit back and enjoy some story about how company dealing with scale and their incident.
Every socket connection in Unix/Linux systems is represented by a file. Files opened by a process are represented by file descriptors - integer numbers that are used in I/O syscalls like read/write. it’s easy to deploy a bug that leaks connections, causes the system to run out of file descriptors, and prevent new connections. It’s difficult to solve this problem in a truly general sense due to the various code paths that may have connection leaks. However, if we’re looking to solve only for internal service communication, we control internal RPC frameworks and deployments, and we can make it simple to debug these failures, catch them before full production rollout, and possibly eliminate them.
Wikipedia defines Root Cause Analysis (RCA) as “a method of problem-solving used for identifying the root causes of faults or problems.” Essentially, root cause analysis means to dive deeper into an issue to find what caused a non-conformance. What’s important to understand here is that Root Cause Analysis does not mean just looking at superficial causes of a problem. Rather, it means finding the highest-level cause- the thing that started a chain of cause-effect reactions and ultimately led to the issue at hand.
Slack serves 2.3 million QPS at peak. 2M of those queries are reads and 300K are writes. Median query latency is 2 ms, and p99 query latency is 11 ms. This shareds detail how they evaluate Vitess and migrate to it at their scale. They are 99% on track of migrating to Vitess at this point
GitHub’s architecture is deeply rooted in Ruby on Rails,” said Ma, adding that “a monolithic architecture got us pretty far,” including multiple code deploys every day and high scale, “serving over a billion API calls daily.” Now they are migrating to microservices, why? Because they acquires so many companies with different tech stacks from Python, Node, C#, and merge sister team from Microsoft. In other words, it isn’t a scalability issue but more about collaboration across teams
A large scale incident of Kinesis in US-East-1 last week. They hit a limit of OS thread, they lack of alerting on OS thread limit to know the root cause earlier. Check out DataDog incident on Infrastructure connectivity issue impacting multiple systems too
In a 2016 TED interview (14:10) Linus Torvalds speaks about what he considers good taste in coding. As an example, he presents two implementations of item removal in singly linked lists (reproduced below). In order to remove the first item from a list, one of the implementations requires a special case, the other one does not. Linus, obviously, prefers the latter
Suppose you double-click on a file on your computer. You’re doing this so you can open the file and work with it. But does your operating system know what that means? How does it know what to open the file in? Let’s look at some solutions that have been proposed over the years to solving this issue.
A pipe is a first-in-first-out interprocess communication channel. This is frequently observed in UNIX shell constructs that utilize the | operator. In this artcile, we look at the pipes from C API perspective.
An experiment on using Postgres and PostGIS as the main workhorse for data over space and time. This post outlines examples of how to use these new PostGIS trajectory tricks with OpenStreetMap data for path findinng
There are currently ~2.5 billion Android devices — consisting of ~1,300 discrete brands and ~24,000 unique device models. I’m exploring tapping into this latent resource pool to make automated testing affordable & unlock a more comprehensive configuration coverage.
Code to read
Algorithms and data structures implemented in JavaScript with explanations and links to further readings
JavaScriptacts like pbcopy/pbpaste but for multiple devices. It lets you share data across devices like you copy and paste.
GoIntegrate Ruby with your Rust application. Or integrate Rust with your Ruby application. This project allows you to do either with relative ease.
RustRubya way of addressing elements within a JSON object. Similar to xpath of yore, JsonPath lets you traverse a json object and manipulate or access it.
RubyVideo
But what about the code that only exists because somebody wanted to write it? Code created just to make people smile, laugh, maybe even dance? Maybe even code that does nothing at all, created just to see if it was possible
Tools
Command-line program to download image-galleries and -collections from several image hosting sites
a high performance, composable and extendable data-processing pipeline for the big data era. Read the companion tutorial at getbaker.io
a high-level driver directly based on DevTools Protocol. It’s designed for web automation and scraping. It performs better than Puppeteer or Playwright
You can view this issue in web browser.
If you have any suggestion/feedback, do tell me by replying to this email. I read them all.
No longer want to receive these emails? Unsubscribe
Older messages
BetterDev #178 - Going Bark: A Furry’s Guide to End-to-End Encryption and Implementing Curve25519/X25519
Monday, November 23, 2020
Better Dev #178 Nov 23, 2020 Hi everyone, Welcome to issue #178. Let's go straight to our links this week. Going Bark: A Furry's Guide to End-to-End Encryption Explaining how to encrypt and
BetterDev #177 - Does Apple really log every app you run? A technical look
Tuesday, November 17, 2020
Better Dev #177 Nov 16, 2020 Hi everyone, Welcome to issue #177. Does Apple really log every app you run? A technical look Apple's launch of macOS Big Sur was almost immediately followed by server
BetterDev #176 - 6 Scary Outage Stories from CTOs and What's in a Linux executable
Monday, November 9, 2020
Better Dev #176 Nov 9, 2020 Hi everyone, Welcome to issue #176. 6 Scary Outage Stories from CTOs You're sound asleep when the alarms go off. It's 3 am You wipe your eyes, check your phone. You
BetterDev #173 - How we ran a Unix-like OS (Xv6), on our home-built CPU with our home-built C compiler
Monday, October 19, 2020
Better Dev #173 Oct 19, 2020 Hi everyone, Welcome to issue #173. Last week I was so busy so I had to skip that issue. We're back to normal now. I hope you like this issue. If you find this
BetterDev #172 - The Hitchhiker’s Guide to Compression& PostgreSQL at Scale: Saving Space (Basically) for Free
Monday, October 5, 2020
Better Dev #172 Oct 05, 2020 Hi everyone, Welcome to issue #172. This week, I want to introduce starship again. I linked to it in issue 119. Recently my zsh prompt is too slow. I want to have all
You Might Also Like
Spyglass Dispatch: The Xitter Bail Out • OpenAI Tender • Grokking Grok • Smartphone Sales • Fischer Random Chess • Scott Bessent for Treasury
Wednesday, November 27, 2024
The Xitter Bail Out • OpenAI Tender • Grokking Grok • Smartphone Sales • Fischer Random Chess • Scott Bessent for Treasury The Spyglass Dispatch is a free newsletter sent out daily on weekdays. Feel
The Long Road Home: A Story of Loss, Learning, and Renaissance - PART 4
Wednesday, November 27, 2024
Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 27, 2024? The HackerNoon
Top Tech Deals 🏷️ PS5 Slim, 4K TVs, 10th Gen iPad, and More!
Wednesday, November 27, 2024
The Black Friday madness is here! How-To Geek Logo November 27, 2024 Top Tech Deals: PS5 Slim, 4K TVs, 10th Gen iPad, and More! The Black Friday madness is here! Black Friday sales are here, and we
The 165+ best Black Friday deals
Wednesday, November 27, 2024
Windows Super God Mode; Bluesky starter packs; Tech gifts under $100 -- ZDNET ZDNET Tech Today - US November 27, 2024 Black Friday 2024 live blog Best Black Friday deals 2024: 165+ sales live now
⚙️ Neuralink's new trial
Wednesday, November 27, 2024
Plus: Zoom is becoming an AI-first company
Matrix Botnet Exploits IoT Devices in Widespread DDoS Botnet Campaign
Wednesday, November 27, 2024
THN Daily Updates Newsletter cover The AI Value Playbook ($35.99) FREE for a Limited Time Business leaders are challenged by the speed of AI innovation and how to navigate disruption and uncertainty.
The Sequence Chat: Why are Foundation Models so Hard to Explain and What are we Doing About it?
Wednesday, November 27, 2024
Addressing some of the interpretability challenges of foundation models and the emerging fields of mechanistic interpretability and behavioral probing. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
Overcoming Perfectionism: How to Break Free from the Enemy of Progress
Wednesday, November 27, 2024
Discover how perfectionism hinders progress and learn practical strategies to overcome the fear of imperfection, boost productivity, and achieve your goals without getting stuck in the pursuit of
🖤 Laravel Black Friday Deals!
Wednesday, November 27, 2024
The biggest deals of the year Laravel Black Friday Deals View in browser Laravel News Editor Note: We are sending this outside the regular Sunday newsletter schedule because some of these specials end
BetterDev #271 - Memory: The Forgotten History and Why did Windows 95 setup use three operating systems?
Wednesday, November 27, 2024
Better Dev #271 Nov 26, 2024 Hi all, Welcome to thanksgiving issue of BetterDev. Hope everyone had a safe and warm thanksgiving. It's getting so cold these days. If you are in warzone such as