Common Causes of Memory Leaks in JavaScript (18 minute read)
Memory usage is tracked in Node.js (V8) with metrics like RSS, Heap Total, Heap Used, External, and Array Buffers. There are various causes of memory leaks, such as improperly managed variables, persistent global objects, unremoved event listeners, closures capturing variables, and circular references. Developers can profile memory usage by using the `--prof` flag and analyzing the resulting profile file to identify areas of potential memory leak.
|
How we run migrations across 2,800 microservices (11 minute read)
Monzo manages library migrations across its 2,800 microservices by having a dedicated team handle migrations, avoiding coordination overhead. Its team has automated mass deployment tooling and automated rollback checks, along with a monorepo structure to streamline the process. This strategy, combined with a gradual roll-out approach and the use of configuration systems for quick rollbacks, makes sure downtime and headaches are minimized.
|
How Meta enforces purpose limitation via Privacy Aware Infrastructure at scale (18 minute read)
Meta's Privacy Aware Infrastructure (PAI) is a large-scale initiative designed to enforce purpose limitation. PAI's key component, Policy Zones, provides a comprehensive mechanism for encapsulating, evaluating, and propagating privacy constraints for data in transit and at rest. Its integration across various Meta systems, including function-based and batch-processing systems, makes sure that data is only used for its intended purpose.
|
|
Merchants of complexity (2 minute read)
People often prefer complex solutions over simple ones, even though they claim to want simplicity. This is because complex solutions make people feel special and superior. Basic problems are often turned into insurmountable challenges during development, requiring expensive subscriptions for "sophisticated" solutions.
|
|
Simulacrum (GitHub Repo)
Simulacrum allows you to write code to build interactive diagrams for complex software flows. It's a React component with an IDE, a compiler, and a runtime all working together. The compiler converts your code into something that can emit the program's custom instructions.
|
|
5,000x faster CRDTs: An Adventure in Optimization (45 minute read)
This developer was able to optimize CRDTs (Conflict-Free Replicated Data types) for collaborative editing by 5,000x. They started with a simple data structure change using a flat list instead of a tree. Then they adopted a bidirectional linked list and run-length encoding, leading to a 30x speedup compared to the original Automerge implementation. Finally, by using Rust's memory control capabilities and a range tree data structure, the developer achieved a 5,000x speedup, demonstrating that CRDTs can achieve performance comparable to native strings.
|
Looming Liability Machines (LLMs) (7 minute read)
Using LLMs for root cause analysis (RCA) for cloud incidents is probably not a great idea. LLMs, while capable of automating some aspects of RCA, lack the depth and nuance of human experts. Furthermore, there's the "automation surprise" problem, where unexpected LLM behavior could lead to dangerous situations due to user misunderstanding.
|
Accurate Proxy Metric Evaluation (5 minute read)
Netflix researchers developed methods to analyze historical A/B test data to understand the relationship between proxy metrics and long-term business outcomes. They propose three estimators that offer more robust solutions for understanding the true relationship between proxy metrics and north star metrics: Total Covariance (TC), Jackknife Instrumental Variables Estimation (JIVE), and Limited Information Maximum Likelihood (LIML).
|
|
TaskWarrior (Website)
TaskWarrior is free, open-source software that helps you manage your TODOs from the command-line.
|
Docker app hosting (6 minute read)
This article describes how to use Docker to host applications on a VPS, which is cheaper and often easier to maintain than using traditional cloud providers.
|
|
Love TLDR? Tell your friends and get rewards!
|
Share your referral link below with friends to get free TLDR swag!
|
|
Track your referrals here.
|
Want to advertise in TLDR? π°
|
If your company is interested in reaching an audience of web developers and engineering decision makers, you may want to advertise with us.
If you have any comments or feedback, just respond to this email!
Thanks for reading,
Priyam Mohanty, Jenny Xu & Ceora Ford
|
|
|
|