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

Резултати

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

Пребарај: #income

当前筛选 #income清除筛选
Tesla Calls Official

@teslacallsofficial · Post #10022 · 15.03.2026 г., 20:51

🔥$INCOME Entered this position as a speculative play within the SOLANA ecosystem. Monitor pullbacks carefully, manage entries with discipline, and always conduct your own due diligence before participating. #TSLA X: https://x.com/i/communities/2033055064420659307 🔗 Contract: https://solscan.io/token/5QmbJw7mM6tcCdXVy8ftc2bu8izded7Etc57TMA2pump https://dexscreener.com/solana/C1CfVtbnUoW9y2ZgZkynn9di4eANZwqa4TPGHa7pfFFr #INCOME#SOLANA#TESLACALLS

Daily Channels

@dailychannels · Post #6201 · 12.07.2025 г., 13:00

Channel: SIGNAL Members: ~63.75K 💢 Username: @finsignal Description: About blockchain, cryptocurrency and crypto technologies. Actual entry and exit points in the cryptocurrency market. Channel: @finsignal Bot: @finsignalbot For questions contact: @finsignaladmin Advertising and schedule: @my_signal_ad_bot 🏷 Tags: #crypto_fx_trading #cryptocurrency#nft#income#business https://telegramchannels.me/channels/finsignal

International News

@intnewsagency · Post #9373 · 25.04.2026 г., 09:34

Putin Changes Income Declaration Rules for Officials Vladimir Putin signed a law requiring officials to declare the total family income—covering themselves, their spouses, and minor children—without detailed breakdowns. Pre-marriage spousal incomes are excluded but may appear in expense declarations. The law limits oversight of transactions and assets made before appointment or marriage, excluding them from inspections and penalties. #Russia#Officials#Income#Law The main news of Russia and the world ishere.

Vet_opportunities

@vet_opportunities · Post #466 · 27.04.2026 г., 07:49

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #439 · 11.04.2026 г., 01:14

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #427 · 04.04.2026 г., 02:56

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #407 · 23.03.2026 г., 16:54

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #400 · 21.03.2026 г., 17:46

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Vet_opportunities

@vet_opportunities · Post #396 · 20.03.2026 г., 18:22

🚀 Looking for LinkedIn Accounts to Rent! Do you have a LinkedIn account ? Turn it into weekly income 💰 We’re looking for accounts to help connect with professionals, clients, and decision-makers. It’s simple, safe, and fully controlled. 🔒 What you get: • Secure use (networking only) • No password changes • No illegal activity • Stop anytime, no stress 💵 Weekly payments via: • Binance • CBE • Telebirr • CBE Birr 📩 Interested? DM now 👉@tadbek Don’t forget to share 🙌 👇👇 @vet_opportunities @vet_opportunities @vet_opportunities #LinkedIn#Networking#Income#Opportunities

Venture Village Wall 🦄

@venturevillagewall · Post #3436 · 19.12.2024 г., 07:00

E-commerce Conversion Crisis E-commerce stores face a critical challenge with low conversion rates from social media traffic—about half of the general average. Despite this, social networks are a major traffic source, with 64% of users making purchases through them, accounting for a third of online sales. This gap presents significant revenue losses for stores that fail to convert this traffic, highlighting a potential market for platforms aimed at boosting conversions. Read more: Fastfounder #Ecommerce#Conversion#SocialMedia#Traffic#Sales#OnlineShopping#Startup#Market#Revenue#Challenges#Users#Platforms#Retail#Growth#Insights#Business#Tech#DigitalMarketing#Shopping#Income#Reports