#goroutines — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #goroutines, aggregated by home.social.
-
Как добиться 8 Гбит/с видеотрафика на одном ядре CPU в Go
Предисловие Есть небольшой побочный профиль, которым я занимаюсь – ретрансляция сырых потоков RTSP, в HLS. По сути задача простая, чтобы любой простой юзер мог увидеть картинку со своих камер, не пользуясь проприетарным облачным ПО от производителя камер. Во-первых, это много денег, т.к многие клиенты хотят хранить достаточно долго записи с камер. Во-вторых, почти у всех производителей камер разное ПО, и это тупо не удобно иметь 10 разных приложений и/или порталов, где это все можно посмотреть. Ну и в-третьих мало где есть интеграции с ИИ (что для моих клиентов, критически важно). Даже если эта интеграция есть, она либо узкоспециализирована, либо опять-таки проприетарна, либо стоит много денег, а иногда и все это вместе. Решение - использование сырых RTSP потоков, их поддерживают и отдают 90% всех камер на рынке. Так вот, схема была достаточно проста: несколько камер, простой бэк, выдаем на едином ресурсе для клиентов картинку по HLS, используя плеер hls.js. Всех все устраивало, всем все нравилось. Быстро, просто, удобно и не дорого. Тесты работали идеально, клиенты довольны. С каждым был чат, куда выдавали ссылку на просмотр, а также был общий чат со всеми клиентами – где обсуждались вопросы подключения, финансовые ну и прочее. И вот настает момент Х, кто-то по ошибке скидывает в общий чат ссылку…и конец. По ссылке кликнул видимо весь чат, 3 минуты, полетели алерты в боте, алярм, ахтунг, тревога. Смотрим железо, сервер в ауте, ООМ, все потоки отвалились. Через 20 минут чат разрывался от гневных сообщений, о неработоспособности у всех. Занавес.
https://habr.com/ru/articles/1067834/
#Go #высоконагруженные_системы #http #оптимизация #goroutines
-
"🎉 Behold, Runloom: the ultimate solution for when you want #Python to pretend it's Go, but with extra chaos! 🚀 Now you can enjoy 'real goroutines' in the comfort of Python 3.13's free-threaded circus, because who doesn't love a side of #debugging nightmares with their code? 😅"
https://github.com/robertsdotpm/runloom #Runloom #Goroutines #Chaos #HackerNews #ngated -
Gossamer: a Rust-flavoured language with real goroutines and pause-free memory
#HackerNews #Gossamer #Rust #Goroutines #MemoryManagement #ProgrammingLanguage
-
Пишем TCP-сканер портов на Go: goroutine, timeout и CSV-отчёт
Недавно знакомый попросил помочь с небольшой задачей по проверке внешнего периметра сети компании. Сразу уточню: речь шла об инфраструктуре, на проверку которой было разрешение. Под внешним периметром обычно понимают всё, что доступно из интернета: публичные IP-адреса, домены, поддомены, облачные или VPS-серверы, а также сервисы, которые слушают внешние порты. Задача была простой по формулировке, но интересной технически: нужно понять, какие адреса доступны извне и к каким портам можно подключиться.
https://habr.com/ru/articles/1046217/
#backend #TPC #Go #port_scanner #Golang #networking #goroutines
-
Learn how to master Go's concurrency model with goroutines and channels. This guide covers mechanics, patterns, best practices, and performance optimization for building efficient, scalable concurrent applications.
#goroutines #channels #Go concurrency #worker pools #context package
https://dasroot.net/posts/2026/02/understanding-goroutines-channels-depth/
-
Почему Go-сервисы начинают тормозить без ошибок (и при чём тут goroutines). Часть 1
Часто про Go говорят: «это язык, где конкурентность почти бесплатная» . И знаете что? Это правда. Почти. Но «почти» — это самое опасное во всей истории, так как либо ты управляешь системой, либо она управляет тобой руками runtime'а. В трёх статьях я разберу путь, через который проходит почти каждый Go-разработчик от наивного «я добавил go — получил параллельность», до взрослого «я проектирую concurrency-систему с понятными границами».
https://habr.com/ru/articles/1028264/
#изучение_языков #go #golang #goroutine #goroutines #программирование #производительность #мониторинг #системное_программирование #архитектура
-
[Перевод] Атомарные операции против мьютексов в Go: когда скорость становится проблемой
Команда Go for Devs подготовила перевод статьи о том, действительно ли атомарные операции всегда быстрее и лучше мьютексов в конкурентном коде. Автор разбирает реальные сценарии, показывает бенчмарки и объясняет, почему рост производительности часто оборачивается ростом сложности и рисков для корректности.
https://habr.com/ru/articles/986732/
#concurrency #atomic #mutex #rwmutex #performance #goroutines #синхронизация
-
🐢💤 Wow, someone discovered that having 50,000 #goroutines is bad for production. 🚀🔧 Who knew that ignoring simple #programming #principles could turn your #API into a sloth? Maybe next time, they'll realize that basic #monitoring isn't just a checkbox activity. 🙄📊
https://skoredin.pro/blog/golang/goroutine-leak-debugging #performance #software #development #HackerNews #ngated -
[Перевод] 1000 и один способ угробить программу из-за гонки данных в Go
Команда Go for Devs подготовила перевод статьи о самых коварных и трудноуловимых гонках данных в Go. Автор показывает на реальных примерах, как даже опытные разработчики легко попадают в ловушки конкурентности: от случайных захватов переменных в замыканиях до неправильного срока жизни мьютексов и скрытых гонок в стандартной библиотеке.
-
🚀 Wow, #groundbreaking news: someone just discovered there's more to life than goroutines! 🤯 Introducing the "Reactive #paradigm," because why keep things simple when you can confuse your fellow developers with buzzwords? 💥Apparently, "ro" is the new magic sauce—because clearly, Go wasn't good enough at #concurrency already. 🙄
https://samuelberthe.substack.com/p/go-beyond-goroutines-introducing #news #reactive #goroutines #buzzwords #HackerNews #ngated -
Go beyond Goroutines: introducing the Reactive paradigm
https://samuelberthe.substack.com/p/go-beyond-goroutines-introducing
#HackerNews #Go #Goroutines #ReactiveParadigm #Programming #Concurrency #SoftwareDevelopment
-
Can anyone recommend a good and up to date book (like, with paper) for learning Go? The programming language, not the game.
Target audience (me) is an experienced, multilingual developer familiar with all the programming things. I need a walk through the syntax and then deeper intros to Go-specific topics, tooling, the standard library, etc.
-
Como Go mudou o uso de concorrência. Via Semana Go / @eltonminetto.dev medium.com/@ashishkhura... #golang #concurrency #goroutines
From Scarcity to Abundance: Ho... -
🤖 "Understanding" the Go Scheduler is code for a 💤-inducing saga about #Goroutines and the majestic #GMP 🌀 model – a thrilling tale of scheduling minutiae nobody asked for, sprinkled with enough disclaimers to make you question if the author even believes it. Spoiler alert: it's mostly recycled content, with a side of 'please correct me' humility. 🙄
https://nghiant3223.github.io/2025/04/15/go-scheduler.html #GoScheduler #RecycledContent #TechHumor #CodingSaga #HackerNews #ngated -
Секреты дедлоков
Как-то раз я допустил в своем коде дедлок и пока выкатывал пул реквест с его фиксом думал “ах как бы было хорошо, если дедлоки определялись на этапе компиляции”. Я решил немного разобраться в этом вопросе и вот что выяснил… Узнать больше
https://habr.com/ru/companies/ozonbank/articles/908978/
#go #goroutine #goroutines #panic #deadlock #deadlocks #timer #дедлок #горутина #горутины
-
Ah, yes, the epic 2025 standoff between the crab with delusions of zero-cost grandeur and the #gopher juggling #goroutines like it's Cirque du Soleil. 🦀🤹♂️ Meanwhile, #TypeScript is left in the corner wondering why it even bothered attending this backend brawl. 🤷♀️💻
https://effective-programmer.com/rust-vs-go-battle-for-the-backend-368f775de9fc #epicstandoff #crabvs #backendbrawl #HackerNews #ngated -
Structured concurrency в языке Go
Горутины виснут непонятно почему, случайная запись в закрытый канал вызывает panic, нормально протестировать приложение вообще невозможно. Наверняка многие из вас сталкивались с такой проблемой: синтаксис языка Go вроде бы очень простой, можно сказать примитивный, да и горутины создаются элементарно, но при этом написать мало-мальски серьёзную программу, которая конкурентно что-то делает, внезапно оказывается не так-то просто. Чтобы не запутаться, люди придумали концепцию structured concurrency, которую можно применять и в Go. Читай или страдай
-
So I'm watching this premium #Go tutorial. The expert shows how fetching 3 URLs sequentially takes 2.1s, whereas running concurrently takes only... 400ms. Both "tests" in the same process. I'm pretty sure connection pooling, DNS caching, HTTP caching and so on contributed much more than #goroutines... And I thought using float32 for money, a few chapters back, was bad
-
Can anyone show me the #fsharp equivalent of these concurrent #goroutines sharing a #connectionpool to #postgresql ?
https://gist.github.com/giuliohome/7ab1e57bd510b72f14faf0d95488a8de#file-db-go -
Interesting explanation why #VirtualThreads are similar to #goroutines and not to coroutines and green threads.
-
^-----
toot to amplify upthread toot, by adding content hashtags:
#Golang
#programming
#latency
#instrument
#instrumentation
#APIs
#measure
#measuring
#metrics
#stats
#monitoring
#observability
#perf
#perftools
#performance
#scale
#scaling
#scalability
#benchmarks
#tuning
#regression
#optimize
#optimization
#time
#compute
#tradeoffs
#software
#concurrency
#threads
#multithreading
#goroutines -
as a fan of oldskool dystopic/apoc fiction & drama TV (esp from the 60s to 80s, & UK/Euro) let me just say Meta's choice of the Threads name is terrible... & PTSD-inducing
as a decades-long programmer with plenty of scars from doing & seeing multi-threaded programming at scale, well, let me just say Meta's choice of the Threads name is also terrible... & PTSD inducing
#programming
#multithreading
#concurrency
#parallelism
#threading
#fibers
#coroutines
#goroutines
#processes -
whenever I hear someone talk about using Meta/Facebook's new Threads I think, "Nah I'll just stick with Golang's channels-and-goroutines model instead, thanks!"
#Go
#Golang
#channels
#goroutines
#threading
#parallelism
#concurrency -
@JorgeStolfi @xenotar I see a benefit in the usage of interfaces for unit testing even the ability to have #goroutines in most cases can make the need of an OS obsolete for most toy projects.
-
An oldie but a goodie:
"Analysis of the Go runtime scheduler:
The Go runtime, as well as the most recently proposed changes to it, draw from previous work to improve scalability and performance. In this paper we explore several examples of previous research, some that have actively influenced the Go runtime, and others that are based on similar guiding principles."http://www1.cs.columbia.edu/~aho/cs6998/reports/12-12-11_DeshpandeSponslerWeiss_GO.pdf