Впервые сделал крупный проект (под NDA, так что не расскажу, какой) на облачных функциях. Впечатления противоречивые.
Изначально программисты арендовали компьютер в датацентре: или целиком или кусочек. На нём теоретически можно делать что угодно, но для запуска своих программ нужно было настроить операционную систему, безопасность и авторизацию, установить нужные исполнительные модули, программы для удобства деплоя, мониторинг нагрузки итд. Поэтому появились сервисы, которые это всё делают за тебя, а тебе дают буквально окно, куда можно написать свой код и запускать его удалённо на чужой машине.
Конкретно я пользовался решением от Яндекса, чей протокол скопирован напрямую с Amazon Web Services. Причём, в документации не только открыто об этом говорится, но ещё и в некоторых местах перенаправляют на доки от Amazon. И SDK предлагают тоже использовать амазоновский. До санкций я бы сказал, что это не так плохо — можно использовать что-то привычное тем, кто уже работал с Amazon. Но сейчас привязка к американскому сервису выглядит скорее жирным минусом. Не знаю, есть ли у Яндекса ресурсы на какое-то серьёзное разделение. Судя по состоянию документации и платформы в целом — нет.
Yandex Cloud кажется системой, которая активно развивалась несколько лет назад, а сейчас подзаброшена. Среда выполнения .NET отстаёт от актуальной на две версии (3.1 вместо 6, четвёртой версии не существует). Изначально мой проект был написан как обычное контейнеризированное приложение на .NET 6, а потом я переводил его на функции. Пришлось пройтись по всему коду и переписать несовместимые куски с C#10 на C#8, это было не слишком приятно.
Документации фактически нет, а там, где есть, много путаницы. В примерах написано одно, по факту другое: например в функцию вместо объекта Request приходит просто строка, а разбирать её надо самому. Авторизацию я нашёл только на Stackoverflow. Интересно, что адекватных доков про неё не было ни у Яндекса, ни у Amazon.
Функция выполняется и выгружается, поэтому ваша программа не должна рассчитывать на наличие постоянно живущего процесса. Мне пришлось вытащить из неё большой словарь, который грузится при старте, и положить уже подготовленные данные из него в Object Storage — это такое горячее файловое хранилище, там же рядом с функциями. Справедливости ради, работает это всё быстрее, чем я думал. Удалось запихнуть в функции даже сравнительно большой проект с кучей классов, создающий при запуске несколько десятков объектов и производящий загрузку из сети с декомпрессией.
Другой важный плюс — бесплатная квота довольно внушительная: миллион вызовов и 10Гб*часов оперативной памяти в месяц. Для пет проекта вы сможете вообще не покупать сервер. Но если сервер у вас всё-таки есть, деплой вы уже настроили, то удобнее будет, конечно, делать как привычно. И гибкости больше.
#dev
В данный момент проходит ежегодный Санкт-Петербургский международный форум труда, в рамках которого 17 марта 2023 года состоится серия дискуссионных обсуждений, посвященных вопросам развития государственной гражданской службы👏
Для желающих принять участие в мероприятии и повысить уровень своих знаний в сфере современных кадровых технологий организована онлайн-трансляция мероприятия на сайте Форума, которая доступна по ссылке.
Актуальная программа размещена на сайте Форума, доступна по ссылке, трек #state👍
Morocco plans to implement energy projects
In the State Duma, at the "Strategic Session on legislative support for economic cooperation with African countries in the energy sector", Chairman of the Russian-Moroccan Business Council Yuri Sharov spoke about promising energy projects in Morocco.
Among those:
🔹 Projects in the field of renewable energy and energy efficiency, such as solar and wind power plants, as well as biomass and geothermal energy.
🔹 The creation of a coal hub in Morocco, which will become a key element of the region's energy infrastructure.
🔹 Seawater desalination projects. Morocco is interested in companies with their own know-how, as well as the supply of equipment.
🔹 Resumption and development of cooperation with the National Electricity and Water Supply Authority of Morocco on projects for the construction of new power plants.
#Africa#Russia#energy#State Duma
Russian business in Africa needs official support
During the "Strategic session on legislative support for economic cooperation with African countries in the energy sector" in the State Duma, Chairman of the Russian-Moroccan Business Council Yuri Sharov said that Russian businesses wishing to work on the continent do not have the necessary support from Russian official structures for new economic projects.
According to him, the projects have not formed a comprehensive ecosystem. Preparatory work on a number of initiatives is scattered, many have not reached practical implementation.
"Only the personal inclusion of each of us and the consolidation of efforts, not only of government agencies, but also of business and civil society, will allow us to solve this critically important global geopolitical task. The AREA Association is the right initiative. The problems of Africa and entrepreneurs working on the continent need to be solved with a united front," he said.
#Africa#Russia#energy#State#Duma
There is a demand in Africa for creation of a sustainable energy infrastructure – Babakov
At the "Strategic session on legislative support for economic cooperation with African countries in the energy sector", which was held in the State Duma, Deputy Chairman of the State Duma Alexander Babakov said that according to forecasts by 2050, the population of the continent could range from 2 to 2.5 billion people.
"This suggests that the potential of the African continent's energy market is very high. Key indicators indicate that both population growth and strong economic growth will continue. Due to the fact that the basis of GDP in many countries, especially in West and Central Africa, is agriculture and exports of raw materials, there is a significant demand for industrial development, requiring the creation of a sustainable energy infrastructure," he said.
Babakov noted that Russian energy solutions, which have shown their effectiveness and sustainability even in difficult climatic conditions, could become a reliable basis for industrial growth in Africa and ensure a new quality of life for the population of the countries.
#Africa#Russia#energy#State#Duma
https://github.com/python-telegram-bot/python-telegram-bot/pull/331
To hold a conversation with users, the #bot has to implement a #state machine to keep track of the different paths in the #conversation. This is a pretty common pattern and we don't have a good way to deal with it right now. The #state_machine_bot.py example is far from perfect.
This PR introduces a new Handler subclass called ConversationHandler to take care of this. Instead of re-inventing the wheel, this handler acts only as "management" for the existing handler classes.
Copied from documentation:
A handler to hold a conversation with a user by managing four collections of other handlers.
The first collection, a list named entry_points, is used to initiate the conversation,
for example with a CommandHandler or RegexHandler.
Georgia Considers Bitcoin Investment Bill
A new bill in Georgia aims to enable the state treasurer to invest in #Bitcoin. This move could open new avenues for state-level cryptocurrency investment. Stay updated on this potential legislation! Read more
#Bitcoin#Crypto#VC#Georgia#Legislation#Investment#Blockchain#Finance#CryptoNews#Treasury#State#Economy
In the Indian state of Kerala, the sculptor carved the statue of Trump and Melania as the embodiment of the Indian gods Shiva and Kali. Thus Trump has entered the Pantheon of Hindu gods.
#indian#state#kerala#trump#pantheon
👂More on Trump's Ear ⚠️
DEPO - #STATISTICS
CHANGES IN STRUCTURE OF STATE-OWNED SHARE
The number of JSCs with state-owned share totaled 226 JSCs or 35.8% in aggregated number of JSCs as of 01.11.2022.
The volume of state-owned share totaled UZS 133 690.4 billion or 80.7 % in total volume of shares issues.
The share owned by Ministry of Finance amounted to 69.9%, Reconstruction and Development Fund - to 22.6%, State Assets Management Agency – to 6.8%, and other state organizations – to 0.7%.
#structure#state#share#shares#SAMA#MinistryofFinance
deponet.uz|Tg|Fb|Inst|Youtube
DEPO - #STATISTICS
CHANGES IN STRUCTURE OF STATE-OWNED SHARE
The number of JSCs with state-owned share totaled 225 JSCs or 35.7% in aggregated number of JSCs as of 01.10.2022.
The volume of state-owned share totaled UZS 133 665.4 billion or 81.2% in total volume of shares issues.
The share owned by Ministry of Finance amounted to 69.9%, Reconstruction and Development Fund - to 22.7%, State Assets Management Agency – to 6.8%, and other state organizations – to 0.6%.
#structure#state#share#shares#SAMA#MinistryofFinance
deponet.uz|Tg|Fb|Inst|Youtube
DEPO - #STATISTICS
CHANGES IN STRUCTURE OF STATE-OWNED SHARE
The number of JSCs with state-owned share totaled 226 JSCs or 35.9% in aggregated number of JSCs as of 1 September 2022.
The volume of state-owned share totaled UZS 132 895.8 billion or 81.4% in total volume of shares issues.
The share owned by Ministry of Finance amounted to 70.1%, Reconstruction and Development Fund - to 22.4%, State Assets Management Agency – to 6.9%, and other state organizations – to 0.6%.
#structure#state#share#shares#SAMA#MinistryofFinance
deponet.uz|Tg|Fb|Inst|Youtube
https://blog.wallaroolabs.com/2017/12/stateful-multi-stream-processing-in-python-with-wallaroo/
#Wallaroo is a high-performance, open-source framework for building distributed stateful applications. In an earlier post, we looked at how Wallaroo scales #distributed_state. In this post, we’re going to see how you can use Wallaroo to implement multiple data processing #tasks performed over the same shared #state. We’ll be implementing an application we’ll call “Market Spread” that keeps track of the latest pricing information by stock while simultaneously using that state to determine whether stock order #requests should be rejected.
#pipeline