Если запустить REPL с модулем asyncio, то вы входите в особый асинхронный REPL.
user@host:~$ python -m asyncio
asyncio REPL 3.12.7 ...
Use "await" directly instead of "asyncio.run()".
>>> import asyncio
>>>
В этом режиме
- создаётся и настраивается event loop
- уже импортирован asyncio
- работает await на верхнем уровне
То есть такая команда сработает без ошибок!
await asyncio.sleep(3)
Удобно для тестирования асинхронных функций без создания ивентлупов и остальной обвязки.
Работает в: 3.8+
#tricks#async
.NET da MediatR va CQRS bilan ishlash
Ingliz tilini bilgan dasturchi, kod yozishni ChatGPT va Copilot ga qo'yib bersa ham bo'laveradi endi. Dasturchi endi asosan uni loyihalashtirishda qatnashishi mumkin 😁 (har qalay shunga qarab ketyapti). Hozirgi zamon yangiliklaridan ilhomlanib, biz ushbu mavzuni tanlashga qaror qildik. Mavzuni kengroq yoritish uchun ko'p yillik tajribaga ega do'stimiz/akamiz/senior dasturchi Muhammadjon aka Fayziyevni taklif qildik. Ma'lumot o'rnida Muhammadjon aka hozirda Najot Ta'lim o'quv markazida .NET yo'nalishi bo'yicha dars ham beradi.
Barchangizni ushbu mahorat darsida kutib qolamiz. Kirsangiz xursand bo'lamiz, kirmasangiz hafa bo'lish yo'q )
Sana: 29-yanvar, 20:00
Havola: Zoom
Speaker: Muhammadjon Fayziyev
#mediatr#cqrs#cleanarchitecture#designpattern
.NET Uzbekistan Community
➖➖➖➖➖➖➖➖➖➖
Telegram | Instagram | Youtube
#csharp#architecture#aspnetcore#clean_architecture#cqrs#ddd#dotnet#dotnetcore#event_driven_architecture#event_sourcing#kubernetes#masstransit#messaging#microservice#microservices#oauth2#opentelemetry#software_architecture#software_design#software_engineering#vertical_slice_architecture
Migrating from a monolithic architecture to a cloud-native microservices architecture offers several benefits. It improves scalability, allowing different parts of the application to grow independently. This approach also enhances reliability by isolating faults, so if one service fails, others continue to work. Additionally, microservices enable faster deployment and updates, as each service can be developed and deployed separately. This flexibility allows teams to use the best technology for each service, making development more efficient and agile[2][3][5].
https://github.com/meysamhadeli/monolith-to-cloud-architecture