@borkena · Post #5278 · 17.11.2025 г., 00:40
የአሰብ ወደብ ጉዳይ (ለውይይት መነሻ) https://shorturl.at/w1W0g#Assab#Ethiopia#Eritrea
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
Пребарај: #assab
@borkena · Post #5278 · 17.11.2025 г., 00:40
የአሰብ ወደብ ጉዳይ (ለውይይት መነሻ) https://shorturl.at/w1W0g#Assab#Ethiopia#Eritrea
@borkena · Post #5207 · 07.11.2025 г., 17:53
The Assab Issue and the Ethiopian Intellectual Class. Read more. https://borkena.com/2025/11/07/ethiopia-the-assab-issue-and-the-ethiopian-intellectual-class/#Ethiopia#Assab#RedSea
@borkena · Post #5275 · 17.11.2025 г., 00:22
The Diplomatic and Political Puzzles Behind The Quest For Sea Access. Read more. https://borkena.com/2025/11/16/ethiopia-the-diplomatic-and-political-puzzles-behind-the-quest-for-sea-access/#Ethiopia#Eritrea#Assab#RedSea
@borkena · Post #5184 · 03.11.2025 г., 03:47
Why Ethiopia Needs Red Sea Access — The Strategic and Legal Case for Assab Port. Read more. https://borkena.com/2025/11/02/why-ethiopia-needs-red-sea-access-the-strategic-and-legal-case-for-assab-port/#Ethiopia#RedSea#Assab#Eritrea
@addisstandardeng · Post #21555 · 28.02.2026 г., 06:49
#Abiy’s vision of #Ethiopia includes a seaport in #Eritrea. Some see a looming conflict To his supporters, Ethiopia’s prime minister is a renaissance man trying to reimagine the old greatness of his country. To some others, Abiy Ahmed is a provocateur who could light a fire in the restive Horn of Africa region as he pushes for sovereign access to the sea via an unfriendly neighbor. In a stadium in southern Ethiopia last Sunday, Abiy staged a provocative parade of Ethiopia’s special forces as they demonstrated maneuvers in a spectacle widely seen as intended for neighboring Eritrea to see. A banner proclaimed Ethiopia would not remain landlocked whether “you like it or not,” with imagery showing a soldier breaking a door while aiming for the port of #Assab. Assab has been part of Eritrea since 1993, when it broke away from Ethiopia after decades of guerrilla warfare. Most of Ethiopia’s trade goes through... https://apnews.com/article/ethiopia-prime-minister-abiy-eritrea-01542a9d7954e0d2f94a7dbe7b00340e
@addisstandardeng · Post #21719 · 14.03.2026 г., 11:49
News: Renewed #Ethiopia–#Eritrea war could ignite conflict spanning 10–15 countries on three continents, trigger “Africa’s Second World War,” expert warns A renewed war between Ethiopia and Eritrea could ignite a broader conflict involving 10–15 countries across three continents and risk becoming “#Africa’s Second World War,” a conflict expert has warned, according to a report by Anadolu Agency. Speaking to Anadolu Agency, Kjetil Tronvoll, professor of peace and conflict studies at #Oslo New University College, said tensions between the two neighboring countries have sharply escalated and could draw in regional and international actors if fighting erupts. The expert suggested that regional and international actors could still help prevent escalation by increasing diplomatic engagement, pressing Eritrea to end interference in Ethiopia’s internal affairs, encouraging negotiations over Ethiopia’s potential use of the port of #Assab....... Read more: https://addisstandard.com/?p=55840
@addisstandardeng · Post #21930 · 03.04.2026 г., 09:39
News: AI-generated war narratives fuel #Ethiopia–Eritrea tensions online: report Artificial intelligence (#AI) generated images and videos portraying a hypothetical #Ethiopian military takeover of #Eritrea’s strategic port of #Assab are increasingly shaping online narratives and inflaming tensions between the two countries, according to a report by #AFP. One of the most prominent creators, 24-year-old Ethiopian law graduate Eliyas Kebede Zemedkun, who has more than 87,000 Facebook followers, told AFP he has spent much of 2026 producing AI-generated content depicting Ethiopia occupying Assab to promote what he described as “Ethiopia’s national narrative.” “I am also motivated to use AI-generated content to challenge narratives that try to downgrade the national army through different demoralizing tactics,” he said, adding that he uses free platforms such as #ChatGPT and #Gemini alongside editing software to create the material. Read more: https://addisstandard.com/?p=56283