TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #425 · 20 апр.

Недавно делал быстрый прототип асинхронного приложения в котором требовалось вызывать много синхронного кода. Да, я знаю, что это не лучший дизайн, но нужно было быстрое решение на один процесс и без очередей. Поэтому я выполнял код в потоках. Выглядело это примерно так: from fastapi.concurrency import run_in_threadpool async def execute(data: DataRequest) -> DataResponse: try: result = await run_in_threadpool(sync_function, data) return DataResponse(data=result) except Exception as e: return DataResponse( error=str(e), success=False, ) В общем работает нормально. Для всех вызовов под капотом используется общий тредпул, всё работает предсказуемо. Но потребовалось изменить количество запускаемых в пуле потоков (по умолчанию создается 40 воркеров). Так как дело происходит с FastAPI, делается это через lifespan используя настройки anyio: import anyio @asynccontextmanager async def lifespan(app: FastAPI): limiter = anyio.to_thread.current_default_thread_limiter() limiter.total_tokens = 100 yield # если вдруг нужно вернуть обратно limiter.total_tokens = 40 Зачем менять количество воркеров? - уменьшить, если оперативки мало (один тред занимает ~8мб) - увеличить чтобы выдержать нагрузку Если есть предложения получше при тех же вводных - предлагайте😉 #async

Hashtags

Резултати

Пронајдени 10 слични објави

Пребарај: #thaad

当前筛选 #thaad清除筛选
科技&趣闻&杂记

@kejiqu · Post #4254 · 12.03.2026 г., 02:25

驻韩美军运出萨德,中东局势波及东亚 据韩国媒体3月11日报道,驻韩美军已将部署在韩国南部庆尚北道星州的“萨德(THAAD)”陆基导弹拦截系统运出,预计将被调往美国、以色列与伊朗持续交战的中东地区。美国《华盛顿邮报》3月9日援引美国官员消息证实了部分萨德系统已部署至中东,以防范伊朗的报复性攻击。该系统射程约200公里,可拦截高空导弹。韩国总统府3月11日表示,即使部分美军战力外调,对朝鲜的威慑力不存在问题。韩国总统李在明3月10日在国务会议上指出,韩国已表明反对立场但未能完全被采纳。此举被解读为美国扩大在东亚作用,并提高对中国的抑制力。韩国防卫产业学会企划室长韩奆熙认为,萨德长期调离可能导致高空防空网出现空白。日经 🏷#萨德#THAAD#中东 📢 频道 👥 群组 📝 投稿

🇺🇸🎯А что там с вывозом THAAD из Южной Кореи?? 👀Как стало известно, переброшенные 3 марта с базы в Сонджу (провинция Северная Кёнсан) на авиабазу в Осане (провинция Кёнги) шесть пусковых установок комплекса ПРО THAAD, развёрнутых ранее США на территории Южной Кореи, до сих пор так и не возвратились к месту своей дислокации. При этом в Осане в последние дни наблюдается высокая активность тяжёлых самолётов военно-транспортной авиации США C-5 и C-17, которые регулярно садятся и взлетают. 👉Есть сведения о том, что все ПУ готовятся к отправке на Ближний Восток, хотя ранее получила распространение информация, согласно которой Вашингтон намерен вывезти с Корейского полуострова только ракеты-перехватчики, оставив сами пусковые установки на месте. ☝️Напомним, развёрнутая на Корейском полуострове батарея комплекса THAAD состоит из 1 командной машины, РЛС и 6 ПУ, в каждой из которых находится по 8 противоракет (т.е. всего 48). #Новости#Корея#Политика#США#БлижнийВосток#THAAD#ПРО#Кризис

‼️⚡️🇮🇷❌🇮🇱🇺🇸Хакерский удар по военной машине Израиля и США Группа Handala заявила, что раскрыла данные 28 американских военных инженеров, работающих в Израиле и участвующих в ключевых военных проектах. По утверждению хакеров, опубликованы: ▪️ имена ▪️ идентификационные номера ▪️ паспортные данные ▪️ места жительства ▪️ базы службы Как заявляет Handala, речь идёт о специалистах, которые долгие годы занимали важные технические позиции и были связаны с обслуживанием F-35 и систем THAAD. Фактически это уже не просто кибератака. Это удар по закрытой инфраструктуре, по военной секретности и по тем, кто обеспечивает боеспособность израильской армии. Чем дальше идёт эскалация, тем очевиднее одно: война давно вышла за пределы обычного поля боя. Теперь бьют не только ракетами — бьют по данным, по системам, по людям и по военной архитектуре изнутри. #Иран#Израиль#США#Handala#Кибервойна#F35#THAAD#БлижнийВосток 🇦🇲Моя Армения🇦🇲Իմ Հայաստան Подписаться 👉@Im_Hayastan

American Оbserver

@american_observer · Post #5240 · 27.02.2026 г., 21:59

🛡 Israel’s “Missile Dome” Problem: Plenty of Targets, Not Enough Arrows Israel is heading into a possible second round with Iran knowing one ugly truth: its famous missile shield is thinner than the PR suggests, and rebuilding it is happening a lot slower than the next war is. During the 12‑day Iran–Israel war in June 2025, Tehran lobbed 574 ballistic missiles; only 49 hit meaningful targets, thanks to a layered defense that mixed Israel’s Arrow and David’s Sling with U.S. THAAD batteries and Aegis ships firing SM‑3 interceptors. On paper, that’s an 85 percent interception rate. In reality, it was a near‑Pyrrhic success: the U.S. fired an estimated 100–250 THAADs — between a fifth and a half of its entire stock — and about 80 SM‑3s, nearly 20 percent of its inventory at the end of 2025. Production lines for those interceptors, plus Israel’s own Arrow‑3, can only crank out a few dozen units per year. Israeli air‑defense veterans are now saying out loud what politicians won’t: “inventory issues” mean there is “no automatic safe place” if Iran or Hezbollah decide to test the system again with bigger, smarter salvos. Iron Dome can keep swatting Hamas‑style short‑range rockets, but the Iran game is different: long‑range ballistic and cruise missiles, launched in waves, from deeper inside Iran, at all hours, with Tehran already having learned in 2025 how to probe for gaps by using smaller, more frequent barrages that exhaust crews and scare civilians into staying home. ​ Washington is scrambling to patch the math. The Pentagon just moved to quadruple THAAD output from 96 to 400 interceptors a year, but Arrow‑3 and SM‑3 production remains “painfully slow,” around two dozen per year each. Israel keeps its own Arrow stockpile numbers secret; analysts quietly joke that anyone who “likes to be worried” shouldn’t ask too many questions. The result is a strategic pressure cooker: if another war starts, Israeli and U.S. planners will be under huge pressure to repeat 2025’s early “air supremacy” — destroying launchers and depots on the ground — because they cannot afford a long fight that burns through interceptors faster than factories can replace them. ​ Publicly, the Israeli military leans on a different message: if missiles get through, the bomb shelters will save you. A spokesperson flatly says the one thing that “will keep them safe for sure” is going underground, not trusting that there are “enough interceptors.” That’s the quiet admission behind the slogans: the high‑tech shield is finite, expensive, and slow to reload; concrete rooms and psychological resilience are the real last line of defense. ​ For Iran, the lesson from 2025 is just as clear: it doesn’t need to overwhelm Israel’s defenses everywhere to hurt it. A few missiles a day on key cities like Beersheba can freeze economic life, keep people indoors, and force Israel to waste precious interceptors to avoid politically intolerable civilian losses. In the next round, the question won’t just be whose missiles are more accurate — it will be who runs out of arrows first, and how much damage a nervous, depleted defender is willing to absorb to avoid finding out. ​ #Israel#Iran#missiles#IronDome#Arrow3#THAAD#war#security 📱American Оbserver - Stay up to date on all important events 🇺🇸

Военная машина

@voennaya_mashina · Post #1377 · 30.10.2025 г., 05:31

🇺🇸THAAD: Американский щит против ракет🛡️ Когда речь заходит о защите от баллистических ракет, система THAAD — один из самых технологичных ответов. Это мобильный комплекс ПРО, способный перехватывать цели даже в космосе!⚙️ ✨Ключевые возможности: ✅ Перехват на большой высоте — до 200км, в космическом пространстве 🚀 ✅Технология «Hit To Kill»: прямое попадание уничтожает цели кинетической энергией без боеголовки 💥 ✅Мощный радар — обнаруживает цели за 3000км 🔍 ✅Мобильность — развертывание за несколько часов ⏱️ 📊Технические характеристики: •Дальность: 200км •Скорость перехватчика: 8 Махов •Ракет в установке: 8 штук 🌍В каких странах действует: США, Южная Корея, ОАЭ, Саудовская Аравия, Израиль Гуам. 17 января 2022 года впервые успешно перехватила реальную БР Йеменских хуситов, выпущенную по цели в ОАЭ. THAAD — важная часть глобальной системы ПРО, способная защищать как войска, так и города от ракетных угроз. #THAAD#ПРО#США#ПротивовоздушнаяОборона#Ракеты#ВоенныеТехнологии Военная машина

🇺🇸🎯СМИ: США передислоцируют часть развёрнутых в РК комплексов THAAD на Ближний Восток 🏹✈️Американские СМИ со ссылкой на анонимные источники в правительстве, сообщили о планах администрации президента Д. Трампа перебросить часть находящихся в Южной Корее элементов системы ПРО THAAD на Ближний Восток в целях усиления обороны в Индо-Тихоокеанском регионе. Напомним, ранее на авиабазе USFK в Осане были замечены тяжёлые военно-транспортные самолёты C-5 и C-17. 💥📰Из сообщений всё тех же СМИ стало известно, что по меньшей мере одна РЛС типа AN/TPY-2, входящая в состав батареи THAAD на базе США в Иордании, была уничтожена в результате массированного ответного удара Ирана 1-2 марта. Кроме того, в период 28 фераля-1 марта повреждения из-за иранских атак повреждения получила батарея THAAD, развёрнутая на территории ОАЭ. Отметим, что стоимость одного радара THAAD оценивается примерно в 500 млн долларов. #Новости#Корея#Политика#США#БлижнийВосток#USFK#THAAD#ПРО#РЛС

Живёт же Беларусь!

@ZhivetZheBelarus · Post #52001 · 08.03.2026 г., 12:31

🇺🇸 Пентагон просит миллиарды на восполнение ракет после ударов по Ирану 🔹Пентагон активно готовит запрос в Конгресс на дополнительные средства для пополнения арсенала, серьёзно истощённого за неделю боёв с Ираном (операция Epic Fury). По данным WSJ и Reuters, интенсивно расходовались Patriot, Tomahawk и THAAD — запасы перехватчиков и крылатых ракет под угрозой. 📈 Администрация Трампа давит на Lockheed Martin и RTX, чтобы ускорить производство, но проблемы с цепочками поставок тормозят процесс. Планируется встреча с топ-менеджерами в Белом доме. 💰 Оценки затрат шокируют: первые четыре дня ударов обошлись примерно в $3.7 млрд (CSIS), а общий запрос на пополнение может достичь ~$50 млрд! Некоторые источники говорят о $5+ млрд уже потраченных, с ежедневными расходами ~$890 млн. Пентагон уверяет, что запасов хватает для продолжения, но переходят на более дешёвые munitions. Конфликт продолжается — цены растут! #Пентагон#Иран#УдарыПоИрану#Трамп#ВоенныеРасходы#Patriot#Tomahawk#THAAD#ОперацияEpicFury#США 📱VK📱Instagram📱TikTok @ZhivetZheBelarus

⚡️Блиски исток — према наводу RUSI, САД, Израел и савезници су за 25 дана рата потрошили укупно 1.767 крстарећих/балистичких и 3.448 ПВО/ПРО ракета-пресретача, што је према проценама угрозило залихе које се за поједине ракете мере у данима. Детаљи потрошње: ⚫️Офанзивне ракете: 912 AGM-158 JASSM, 535 BGM-109 Tomahawk, 320 MGM-140 ATACMS/PrSM. ⚫️Дефанзивне/пресретачке ракете: 1.285 PAC-3, 563 Tamir (Iron Dome), 431 SM-2/SM-3/SM-6, 402 PAC-2, 340 THAAD, 135 David’s Sling, 122 Arrow-2/3, 117 PAC-2/PAC-3 (СА), 53 Aster. → Линк: /t.me/borbeni_efektivi → Линк: /t.me/borbeni_efektivi 🪖#Билтен〣#Блиски_исток〣#Иран〣#САД〣#Израел〣#RUSI〣#JASSM〣#Tomahawk〣#ATACMS〣#Patriot〣#THAAD〣#Arrow 🇷🇸https://t.me/borbeni_efektivi

American Оbserver

@american_observer · Post #5397 · 16.03.2026 г., 19:59

Israel’s Missile Shield Is Running On Fumes Israel just told Washington it’s running critically low on ballistic missile interceptors, while officially denying to its own public that there’s any problem at all. The war with Iran already started with depleted stocks after last summer’s barrage, and Iran has upgraded to missiles with cluster munitions — great for saturating defenses, terrible for anyone under the sky. “It’s something we expected and anticipated,” a US official said — translation: they watched the ammo meter hit red and kept the tab open. ​ Washington insists its own interceptor supply is fine, totally fine, “not like Israel,” even as think tanks and leaks warn that a long war with Iran is exactly how you hollow out your missile defense on layaway. The US blew through over 150 high-end THAAD interceptors in a 12‑day Iran fight last June — roughly a quarter of the inventory — and is believed to have burned about 2.4 billion dollars’ worth of Patriot missiles in the first five days of this new round. Trump calls the stockpile “virtually unlimited,” while the Pentagon quietly signs emergency production deals and budget lines scream the opposite. Israel’s foreign minister publicly denies they’re low on interceptors, but the same week the State Department rushes through an “emergency” sale of 12,000 BLU‑110 bomb bodies to Israel and waives congressional review, because apparently there’s always enough time to argue about pronouns but no time to vote on a thousand‑pound shipment. Missiles for defense are running out, but the pipeline for more offensive bombs is wide open — the arsenal might be shrinking, but the business model is booming. The White House swears US stockpiles are “more than enough” for Trump’s goals “and beyond,” the Pentagon says it can execute any mission “at the time and place” of his choosing, and a defense secretary boasts that Iran’s ballistic missile production is “functionally defeated.” At the same time, Iran openly says there’s no room for diplomacy and that it’s ready for a long war, while Trump describes the whole thing as a “short-term excursion” that will last “as long as it’s necessary” because the enemy is “decimated” and “collapsing.” So either everyone’s winning or everyone’s lying — and the interceptors don’t care, they just run out. If the shield is thinning, the political armor is still thick: US officials insist they have “all that we need to protect our bases,” Israel is “coming up with solutions,” and defense contractors are praised for being called upon to “quickly build US-made weapons.” The only real emergency, judging by who gets fast‑tracked, is making sure the factories never sleep — because in this version of “collective security,” the only thing that must not be intercepted is the cash flow. #war#Israel#Iran#USA#Trump#missileDefense#IronDome#THAAD#Patriot#militaryindustrialcomplex#fakeDemocracy#geopolitics#MiddleEast#nuclearcrisis#weaponsDeal 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5402 · 17.03.2026 г., 16:05

The ‘Eyes of the State’ Under Fire Israel’s and America’s “eyes” in the region are getting scratched out one by one — slowly, cheaply, and in full view of every OSINT nerd with a Planet Labs subscription. Iran and Hezbollah aren’t just overwhelming interceptors; they’re dismantling the radar skeleton that tells those interceptors where to look. ​ Hezbollah has been methodically working over Israel’s Meron air-control base — the “eyes of the state” — since January 2024: first with a 62‑round mix of Katyushas and Kornet ATGMs that visibly smashed at least two radar domes, then with follow‑up missile strikes and now attack drones. Iron Dome is built to kill ballistic arcs, not straight‑flying anti‑tank missiles guided off Google Earth, and Hezbollah leans into that gap like it’s reading the brochure. Official line: capabilities “unharmed,” backup systems “working”; unofficial reality: a flagship fixed radar site just got turned into a recurring target set. Ramat David — one of Israel’s key airbases — has already eaten barrages of Fadi missiles and now a swarm of strike drones supposedly aimed at radars and command posts, with Hezbollah boasting and the IDF keeping very quiet about specific damage. Add in hits on Iranian and IRGC radars by US‑Israeli strikes — Kish Island, Zahedan, Imam Khomeini Airport — and you get a regional contest of who can blind whom faster, not who can “defend civilians” better. ​ Iran’s Cheap War on Billion‑Dollar Sensors While Washington keeps talking about “protecting our forces” and “freedom of navigation,” Iran went straight for the US early‑warning grid: an AN/TPY‑2 THAAD radar in Jordan confirmed destroyed, radar buildings in the UAE damaged, a billion‑dollar AN/FPS‑132 site in Qatar visibly scarred, with Site 512 in Israel suddenly looking a lot less immortal than the PowerPoints promised. Each radar costs in the hundreds of millions; each kamikaze drone runs in the tens of thousands — a beautiful kill ratio if you’re Tehran or a defense‑industry shareholder. ​ OSINT accounts stitch it all together: craters at Muwaffaq Salti, burn marks on Umm Dahal’s giant radar face, THAAD sites in the UAE punched in, maps of “US‑linked locations hit by Iran + high‑value radars confirmed damaged or destroyed.” In public, Pentagon spokespeople refuse to discuss “specific capabilities”; in commercial imagery, billions of dollars of “specific capabilities” are sitting in smoking holes. ​ Strategic Meaning: The Radar War The pattern is simple and ugly: Iran and Hezbollah are waging a sensor war, not just a missile war. Knock out or degrade Meron, THAAD eyes in Jordan, the warning radar in Qatar, radar complexes in the UAE, and you don’t need to shoot down every interceptor — you just make them late, blind or fired in the wrong direction. Israel hasn’t lost its entire ground‑based radar network, but the regional early‑warning architecture that was sold as near‑invulnerable has already taken a hit that no spin about “redundancy” can fully erase. ​ And that’s the punchline: the West poured fortunes into layered missile defense to feel untouchable, while Iran and Hezbollah invested in drilling cheap holes in the eyes of the system — with OSINT providing the after‑action report in real time. ​ #IranWar#Israel#Hezbollah#USA#radar#THAAD#Meron#Site512#OSINT#missileDefense#war#geopolitics#militaryindustrialcomplex#fakeSecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸