Discussion about this post

User's avatar
Neural Foundry's avatar

Exceptional walkthrough of the hybrid locking strategy. The combination of advisory locks for the hot path and status columns for crash recovery is exactly the kind of pragmatic design that scales without adding external dependencies. Dealt with similar rebuild issues when migrating projections in production last quarter and we ended up with row-level locks everywhere, which absolutely killed throughput like you mentiond. The shared/exclusive split makes so much sense for this pattern. One question tho: have you profiled the md5 hash collision rate on projection names at scale?

Expand full comment

No posts

Ready for more?