Впервые сделал крупный проект (под 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
#BENIN🇧🇯 BRAVO AUX RÉVOLUTIONNAIRES 👏🏽
🇫🇷 Les véritables responsables de la trahison envers l’Afrique sont ces dirigeants inféodés aux intérêts français, comme Talon ou Tinubu, alliés zélés du mondialisme.
@egountchibehanzinTV
#Benin🇧🇯 Si Patrice Talon est réellement en sécurité et que son armée a repris le contrôle , qu’il le prouve. Qu’il se montre, qu’il apparaisse à la télévision ou qu’il fasse un direct depuis la présidence, au lieu d’appeler en renfort ses bidasses français. 🤣
La situation est sous contrôle, oui, mais entre les mains des militaires patriotes du CMR.
Vive le CMR ! Vive le Bénin libre !✊🏾
@egountchibehanzinTV
🇧🇯#Benin: A group of soldiers in Benin, calling themselves the Military Committee for Refoundation, appeared on state TV claiming they had overthrown President Patrice Talon earlier today.
Gunfire was reported around the presidential palace and other areas in Porto-Novo, and some journalists working for the state broadcaster were reportedly taken hostage. The soldiers justified their actions by criticizing the president’s handling of the worsening security situation in northern Benin, where the army has faced losses amid the spread of jihadist militants from Niger and Burkina Faso.
Meanwhile, the government of Benin has declared that Talon is safe and that "loyal troops" have restored control, stopping the coup attempt.
(via BBC)
#AESinfo | #Benin🇧🇯
Kemi Seba Annonce sa Candidature à la Présidentielle Béninoise
Kemi Seba, figure emblématique du panafricanisme, a officiellement annoncé sa candidature à l’élection présidentielle béninoise. Engagé depuis des années dans la lutte contre le néocolonialisme, Seba fait le saut en politique, prêt à bousculer l’ordre établi et à défendre une vision souverainiste pour le Bénin et l’Afrique.
#AESinfo | #Benin🇧🇯
Maintien de la Coopération avec les Pays de l'AES Malgré leur Départ de la CEDEAO – "Nous devons trouver les moyens de travailler avec eux"
Face au retrait du Niger, du Mali et du Burkina Faso de la CEDEAO, le Bénin adopte une posture de coopération pragmatique. Son chef de la diplomatie, Olushegun Adjadi Bakari, a affirmé avec force la volonté de son pays de maintenir des liens étroits avec les nations de l'Alliance des États du Sahel (AES), soulignant l'importance de la collaboration régionale pour le développement et le bien-être des populations.
Retrouvez l’article complet sur
Twitter X @AESinfos
Facebook https://www.facebook.com/share/1bQfDUsTmn/?mibextid=wwXIfr
#video#Benin
In Benin, many children skip school because they are sent to voodoo convents. They are given new names and are forbidden to use their old ones or speak their native language. Families send their children to a monastery to appease the spirits if parents or a child falls sick. But it’s not easy to go back. A release ceremony costs $50, an unaffordable sum for most families.
Watch the video in our post to learn what happens inside voodoo convents.
To know more about the voodoo monasteries, watch the premiere of our film Voodoo Brides.
Follow: https://t.me/rtdocumentary
#AESinfo | #Benin🇧🇯 - 🇳🇪#Niger
Crise Bénin-Niger : « Nous proposons aux autorités militaires nigériennes d'effectuer une visite conjointe du territoire béninois », une invitation au dialogue lancée par le Bénin
Dans un contexte de tensions persistantes entre le Bénin et le Niger, le ministre béninois des Affaires étrangères, Olushegun Bakari, a lancé un appel au dialogue et à la transparence, offrant une initiative inédite pour rétablir la confiance entre les deux nations. Le ministre a déclaré : « Nous proposons aux autorités militaires nigériennes d'effectuer une visite conjointe du territoire béninois avec leurs homologues béninois. » Cette proposition audacieuse vise à dissiper les accusations portées par le Niger concernant la présence de bases militaires étrangères sur le sol béninois.
Retrouvez l’article complet sur
Twitter X @AESinfos
Facebook https://www.facebook.com/share/1TA9CtGaJf/?mibextid=wwXIfr
#AESinfo | #Niger🇳🇪🤝🏾🇧🇯#Benin
Le Niger et le Bénin renforcent leurs liens diplomatiques : Un nouvel ambassadeur en vue
Les relations entre le Niger et le Bénin continuent de se consolider. En effet, le gouvernement nigérien a récemment proposé un candidat pour occuper le poste d'ambassadeur à Cotonou.
Selon le porte-parole du gouvernement béninois, Wilfried Léandre Houngbédji, la proposition nigérienne a été soumise au Conseil des ministres et a reçu un avis favorable. Il ne reste plus qu'aux autorités nigériennes de procéder à la nomination officielle de leur représentant diplomatique au Bénin.
#AESinfo | #Niger🇳🇪🤝🏾🇧🇯#Benin
Sécurité, transport, énergie : Les enjeux de la coopération Niger-Bénin au cœur d'un entretien
Les relations entre le Niger et le Bénin se sont renforcées ce vendredi 18 octobre 2024. L'ambassadeur béninois au Niger, Gildas Djobloski AGONKAN, a été reçu par le ministre d'État chargé de l'intérieur, le Général Mohamed TOUMBA. Au cours de cette rencontre, les deux personnalités ont abordé des questions cruciales pour la coopération bilatérale, notamment la sécurité, les transports et l'énergie.
#photo#Benin
These girls in Benin have ended up in a voodoo convent sent there by their parents… and the spirits. They are forbidden to speak their language and learn a voodoo language instead. They’ve outgrown the few clothes they possess. They’ll get new clothes if they are released from the convent. But it’s unlikely. Parents have to pay a hefty sum to get their children back. However, it’s cheaper to let a child stay in a voodoo convent in many cases.
Director Natalya Kadyrova is working on her new documentary from Benin. It’s coming up soon! So subscribe to our channel to be the first to see the documentary!
Follow: https://t.me/rtdocumentary
#photo#Benin
Fuel can be illegal, too! They’re filling a car with fuel smuggled from neighbouring Nigeria, where it’s much cheaper. The 20-litre glass bottle is a trademark of Benin’s fuel sellers. Many prefer to fill up at roadside stalls rather than licensed filling stations.
RT Documentary’s Natalya Kadyrova is in Benin shooting a new film. If you’d like to know more about Benin, stay tuned for the premiere. We’ll keep you updated!
Follow: https://t.me/rtdocumentary
#photo#Benin
A unique collection of photos all the way from Allada, Benin, where RT Documentary’s Natalya Kadyrova is working on a new film. They feature a local ruler in this small Western African nation and his subjects.
While we wait for Natalya’s new documentary, here’s an interesting fact for you - Benin is widely seen as the home of Voodoo. We have a documentary about that mysterious, and often misunderstood, religion.
Follow: https://t.me/rtdocumentary