Latest articles

426 new today · 7,419 articles · from 241 blogs

Marc Brooker·

Fixing retries with token buckets and circuit breakers

AI summaryThe article compares retry strategies for clients calling a failing service: no retries, N retries, adaptive retries using a token bucket, and retry circuit breakers, evaluating them through reasoning and an event-driven simulation. It finds that the token bucket approach behaves like N retries at low failure rates while smoothly reducing retries at higher rates, whereas the circuit breaker avoids extra load at high failure rates but can trip early because each client only has a local estimate of the failure rate, an effect amplified with many small clients. The best choice depends on the goal: the adaptive token bucket performs better at low failure rates without modality, while circuit breakers eliminate extra load at high failure rates.

Lil'Log·

Learning with not Enough Data Part 2: Active Learning

This is part 2 of what to do when facing a limited amount of labeled data for supervised learning tasks. This time we will get some amount of human labeling work involved, but within a budget limit, and therefore we need to be smart when se

Marc Brooker·

Will circuit breakers solve my problems?

AI summaryThe article argues that circuit breakers, often proposed as a fix for overload-induced failures in distributed systems, struggle with the partial failures that sharded and cell-based architectures are designed to handle. Because a breaker can't reliably predict whether a specific call will succeed when only part of a service is overloaded, tripping it can turn a partial failure into a complete outage. The author concludes that circuit breakers may defeat modern fault-tolerance mechanisms, so engineers should think carefully before deploying them.

Baby Steps·

Dare to ask for more #rust2024

AI summaryThe author reflects that Rust 2021's modest changes, such as precise closure captures and simplified inline format strings, noticeably improved day-to-day usability, just as NLL and the 2018 module system did before. Looking ahead to Rust 2024, the author urges the community to be ambitious and dare to aim for even more meaningful improvements.

Svelte Blog·

What’s new in Svelte: February 2022

AI summaryThis February 2022 update recaps rapid development in the Svelte ecosystem, with releases 3.45.0–3.46.3 adding new accessibility warnings, the {@const} tag, and the style: directive alongside various fixes. SvelteKit introduced features such as beforeNavigate/afterNavigate lifecycle functions, Content Security Policy support, $page.stuff, and fallthrough routes, plus a breaking change requiring Request and Response objects in endpoints and hooks. The post also rounds up community highlights, showcasing new apps, tutorials, videos, podcasts, and libraries built with Svelte and SvelteKit.