Home / Companies / Sentry / Blog / Post Details
Content Deep Dive

A locking war story

Blog post from Sentry

Post Details
Company
Date Published
Author
Arpad Borsos
Word Count
1,235
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

The migration of JavaScript and SourceMap processing from Python to Rust in the Symbolicator service at Sentry led to initial challenges, including low throughput and backlog issues due to lock contention. The core problem was identified as the need for a &mut reference for Read and Seek operations, which caused contention when sharing a zip::ZipArchive across multiple tasks. The solution involved giving each task its own Mutex-locked copy of the ZipArchive, resolving the contention and improving system performance. However, the frequent decompression of zip archives has emerged as a new bottleneck, suggesting a need for reconsideration of the use of zip archives for tasks requiring frequent access. Despite this, the system's overall architecture remains high-performing, with decompression now being the primary performance constraint.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.