@khazar_dictionary · Post #1104 · 19.09.2022 г., 18:45
India and Saudi Arabia have held discussions on the feasibility of institutionalising Rupee-Riyal trade, and introduction of UPI and Rupay cards in the kingdom. #dedollarization
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
Пребарај: #dedollarization
@khazar_dictionary · Post #1104 · 19.09.2022 г., 18:45
India and Saudi Arabia have held discussions on the feasibility of institutionalising Rupee-Riyal trade, and introduction of UPI and Rupay cards in the kingdom. #dedollarization
Hashtags
@badvolfnews · Post #1941 · 05.12.2024 г., 12:02
Hey guys, it’s John Mark Dugan. Here’s why Trump’s threat to impose 100% tariffs on BRICS countries over a new currency is doomed to fail: BRICS nations aren’t leaving the dollar out of spite—they’re doing it to survive US sanctions and blackmail. The dollar’s dominance has been weaponized for too long. Russia, China, India, Brazil, and others are moving toward their own reserve currency, and it’s a smart move. The US created this mess by abusing its power, and Trump can’t undo that damage with empty threats. The world is changing, and the days of US economic control are over. #BRICS#DeDollarization#Trump#USPolitics
@CryptoM · Post #65452 · 13.04.2026 г., 09:22
🚀 Bitcoin's Potential Valuation by 2050 Discussed by Strategist PANews posted on X (formerly Twitter) that strategist Mark Moss shared his insights on the future valuation of Bitcoin during a podcast. Moss projected that by 2050, Bitcoin could reach a value of $45 million. He further speculated that if Bitcoin were to replace the U.S. dollar as the global unit of account, its value might even soar to $500 million. Moss's predictions are based on several factors, including the anticipated growth of the global store of value basket, which he estimates will reach $80 trillion by 2050. He believes Bitcoin could potentially capture around 20% of this market share. Additionally, Moss highlighted the impact of a 50-year cycle of technological revolution and the geopolitical trend towards de-dollarization, suggesting that these elements could contribute to Bitcoin's significant valuation increase. #Bitcoin#Valuation #2050 #MarkMoss#FuturePrediction#Cryptocurrency#GlobalEconomy#StoreOfValue#DeDollarization#Geopolitics#TechnologicalRevolution#DigitalCurrency#BTC