Reddit Programming
211 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
Building a Multi-Tenant Metrics Pipeline for Thousands of Clients (with Thanos)
https://www.reddit.com/r/programming/comments/1qiuq77/building_a_multitenant_metrics_pipeline_for/

<!-- SC_OFF -->Last big project I did at my last position. It was a lot of fun and I wanted to do a high-level blog post on how it worked. <!-- SC_ON --> submitted by /u/jrobbproj (https://www.reddit.com/user/jrobbproj)
[link] (https://jamesrobb.ca/projects/metrics_pipeline/) [comments] (https://www.reddit.com/r/programming/comments/1qiuq77/building_a_multitenant_metrics_pipeline_for/)
Why Naive SPSC Queues Fail - A Step-by-Step Walkthrough
https://www.reddit.com/r/programming/comments/1qivp66/why_naive_spsc_queues_fail_a_stepbystep/

<!-- SC_OFF -->I put together a short video series that walks through building a single-producer / single-consumer queue from scratch. The current videos cover: • a naive SPSC implementation • why it seems correct • where it breaks down (cache effects, memory ordering assumptions) The next step will be evolving this into a lock-free design, but I wanted to share the reasoning process first since that’s usually glossed over. Feedback from people with real-world concurrency experience would be very welcome. https://youtube.com/playlist?list=PLHricCAtcO58\\\_4dKgQOzIT6rl9ke5vS1w&si=3NBWV9fsrlKHnylV (https://youtube.com/playlist?list=PLHricCAtcO58%5C%5C%5C_4dKgQOzIT6rl9ke5vS1w&si=3NBWV9fsrlKHnylV) <!-- SC_ON --> submitted by /u/okay_vss (https://www.reddit.com/user/okay_vss)
[link] (https://youtube.com/playlist?list=PLHricCAtcO58_4dKgQOzIT6rl9ke5vS1w&si=3NBWV9fsrlKHnylV) [comments] (https://www.reddit.com/r/programming/comments/1qivp66/why_naive_spsc_queues_fail_a_stepbystep/)
Two Catastrophic Failures Caused by "Obvious" Assumptions
https://www.reddit.com/r/programming/comments/1qj00yq/two_catastrophic_failures_caused_by_obvious/

<!-- SC_OFF -->Both incidents involve smart people doing reasonable things and systems behaving exactly as designed. Mars Climate Orbiter (1999): lost because one team used Imperial units and the other used Metric. Citibank $500M error (2020): a routine interest payment turned into a principal transfer due to ambiguous UI labels. The problem wasn’t complexity but "meaning" that existed only in people’s heads. This is a breakdown of how assumptions turn into catastrophic technical debt. <!-- SC_ON --> submitted by /u/Vast-Drawing-98 (https://www.reddit.com/user/Vast-Drawing-98)
[link] (https://open.substack.com/pub/alexanderfashakin/p/make-it-make-sense-nobody-clicked-the-wrong-button?utm_campaign=post-expanded-share&utm_medium=web) [comments] (https://www.reddit.com/r/programming/comments/1qj00yq/two_catastrophic_failures_caused_by_obvious/)
Using KadePy (Python) to communicate with Node.js via Hyperswarm — best practices?
https://www.reddit.com/r/programming/comments/1qjgwt2/using_kadepy_python_to_communicate_with_nodejs/

<!-- SC_OFF -->Hey everyone, I recently released KadePy, a Python library inspired by Hyperswarm, with the goal of enabling P2P communication between Python and Node.js using the same swarm/discovery concepts. I've been experimenting with a setup since: Python uses KadePy Node.js uses Hyperswarm Both enter the same thread and exchange binary messages/streams2 So far, it's a function for basic messages, but I'd like to receive feedback from people with more experiences with: Hyperswarm Internal Operation P2 P Networks Communication between runtime environments (Python Node.js) Something questions: Are there any issues encountered when confusing Python-based peers with Hyperswarm peers in Node.js? Anything recommended for message inquiries, handshakes, or broadcast protocols? Do anyone have performance or security issues with a C extension approach to CPython? Would it make sense to completely mirror a Hyperswarm API or maintain a more Pythonic abstraction? For those curious, the project is open source and still in its early stages. I'd greatly appreciate any feedback, criticism, or ideas from the community. Thank you! <!-- SC_ON --> submitted by /u/Shoddy_Use_473 (https://www.reddit.com/user/Shoddy_Use_473)
[link] (https://github.com/on00dev/KadePy.git) [comments] (https://www.reddit.com/r/programming/comments/1qjgwt2/using_kadepy_python_to_communicate_with_nodejs/)