@serbadgernews · Post #2965 · 03.08.2025 г., 15:46
#Concept For improvement for 🎁 What do you think? 👍 - Nice. 😁 - Not my interest.
Hashtags
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
Пребарај: #concept
@serbadgernews · Post #2965 · 03.08.2025 г., 15:46
#Concept For improvement for 🎁 What do you think? 👍 - Nice. 😁 - Not my interest.
Hashtags
@car_news · Post #1269 · 15.05.2025 г., 12:04
🛸This is futuristic: the Hyperion XP-1 hydrogen car with the sound of a spaceship and steam instead of exhaust 🐎 The engine has 2038 hp and acceleration to 100km/h is 2.2 sec. 🔋 One tank of hydrogen helps to overcome in the region of 1600 km. 💰 They are preparing 300 copies, each of which will cost $2 million. #concept@Car_News
Hashtags
@news_and_tips · Post #1145 · 05.07.2023 г., 11:55
😈 Simply "Topics" integration to "Saved message" Source : 💌💌💌 #concept
Hashtags
@ArashRx · Post #417 · 19.01.2024 г., 19:10
🅰Request For Approval Telegram in version 10.6.1 added the ability to restrict incoming messages for Non-Premium subscribers, which creates many restrictions for chats. Read more details in the next post. 🌚Concept designed by @Rxdvl (Still me) -#concept 🅰@ArashRx
Hashtags
@ArashRx · Post #401 · 09.01.2024 г., 12:25
🪟Members Grid Concept 🌿Another suggestion from @Linus 🌚Designed by @Rxdvl (me lol) - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #359 · 13.11.2023 г., 13:49
🅰Emoji Switcher, Hold on an emoji to choose custom emojis Yeah, again a concept, even though it shouldn't be. But this time was @Linus's idea; One of his creative ideas. Designed by me🌚 - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #292 · 06.08.2023 г., 20:57
🅰Telegram Drive Concept📥 Telegram Drive is an unlimited storage based on cloud space which, in addition to Saved Messages, has features such as editing images before sending and sending them as albums. Write your opinion about this concept in the comments 🌚Designed by me - #concept 🅰️@ArashRx
Hashtags
@ArashRx · Post #243 · 19.05.2023 г., 09:13
🅰Telegram Moments Concept🔥 Write your opinion about this feature in the comments 🌚Designed by me - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #191 · 05.01.2023 г., 16:42
My first concept for Telegram: 🅰Hashtag Notifications Concept🚀 ※ Select the hashtags you want to join be notified about and get notified when those hashtags are posted in a channel🔥 This is only a concept designed by me and it was sent as a suggestion for Telegram and I hope that this concept will be supported so that we can see this feature in Telegram soon. Write your comments about this concept below this post👇 - #concept ⭕️@ArashRx
Hashtags
@Dwflabs · Post #136 · 09.01.2023 г., 00:21
In our latest episode of DWF Chats, we hosted Ty Blackard, Co-founder and Head of Business Development of NFTY Finance 🙌 Hear more about NFTY Finance, how #defi is changing the #concept of credit score and what's coming up for them in 2023 ✨ Full interview here. Click here to find out more. Get connected 💬 Twitter | Linkedin | Website | Discord
@car_news · Post #1204 · 17.04.2025 г., 14:32
🎮 Sony has revealed Afeela electric car, which can be driven with the PS5 joystick ℹ️ The Afeela concept was originally stated to have 400kW (536hp) dual-motor all-wheel-drive, 0-100km/h in 4.8 seconds, and a top speed of 240km/h. 💰 Still no information on price or battery size, but there are two more years until this car hits the road, so price will surely come later. @CarsNews #concept#EV
@bubbletealuv · Post #3382 · 09.10.2025 г., 21:05
ᝬ 🫐🫐🫐🫐🫐𖠵 ゛ (( 🤩) new post by bubbletealuv ↝ #concept ➛ #TXT.. ✨ …( emoji ) 💭 взяли? буду рад увидеть плюсы и реакции.