560 blogs tracked4,950 posts indexed

#concurrency

7 posts · 4 companies · newest first

1

Concurrency Control: Your Aggregate Is Single-Threaded. Your Cluster Isn’t. (opens on the source site)

Concurrency control comes in two kinds, and most distributed-systems failures are a misassignment between them. Let’s look at where to put the single-writer guarantee, what each placement costs, and why the cheapest one has no failure mode at all. There are two mechanisms for keeping two things from stepping on each other, and they are […] The post Concurrency Control: Your Aggregate Is Single-Threaded. Your Cluster Isn’t. appeared first on Atomic Spin.

development-practicesconcurrencyexcerpt only · body stays at the source
From the web
4

Implementing Co, a Small Language With Coroutines #5: Adding Sleep (opens on the source site)

In the previous post, we added channels to Co, the small language we are implementing in this series of posts. In this post, we add the sleep primitive to it, enabling time-based coroutine scheduling. We then use sleep to build a simulation of digital logic circuits.

programming-languagesinterpretersexcerpt only · body stays at the source
From the web
5

Scaling recommendations service at OLX (opens on the source site)

Optimizing FastAPI at Scale: Lessons from OLX’s Recommendation PlatformPhoto by Rosy KoIn distributed systems, there is a motto that says ‘you are as slow as your slowest tasks’. In Python, thanks to the notorious Global Interpreter Lock (GIL), this issue is amplified: ‘your slowest task will make every other task slower’. In this article, I’ll walk you through the optimizations we made to scale a FastAPI service that now handles tens of thousands of requests per second, achieving a p99 latency under 10ms.IntroductionOLX is a global online marketplace that enables users to buy and sell goods…

machine-learningoptimizationexcerpt only · body stays at the source
From the web
7

Implementing Co, a Small Language With Coroutines #3: Adding Coroutines (opens on the source site)

In the previous post, we wrote the interpreter for basic features of Co, the small language we are building in this series of posts. In this post, we explore and implement what makes Co really interesting: support for lightweight concurrency using Coroutines.

programming-languagesinterpretersexcerpt only · body stays at the source
From the web
7 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.