Впервые сделал крупный проект (под 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
As I sat in front of my computer screen, the magic of words and code balanced perfectly, pulling me into their captivating world. My telegram blog became my sanctuary, where my thoughts flowed unfiltered. Sharing became liberating, much like a source code on GitHub. Sharing is a compelling leap, be it a blog post or code. My writing buddy or a fellow programmer offers an invaluable critique. Our exchanges merge the worlds of syntax and structures, enhancing each other's crafts.
#care
🐾 Dogs — Our Guardian Angels
Dogs are more than just pets. They are like angels by our side: protective, intuitive, and full of unconditional love.
💙 They watch over children, becoming loyal friends and guardians.
💙 They support adults during difficult times, bringing peace and joy.
💙 They teach us kindness, loyalty, and unconditional love.
Sometimes it feels like they are sent to make the world a better and safer place. Let’s cherish those who protect us every day ❤️
#kindness#dogs#loyalty#care☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot
Instagram | Facebook | Twitter | Sayt | Youtube
The Inhuman World of Ours:
Millions of Pregnant Women Without the Basic Care
A global shortage of nearly a million midwives is leaving pregnant women without the basic care needed to prevent harm, including the deaths of mothers and babies, according to new research.
Almost half the shortage was in Africa, where nine in 10 women lived in a country without enough midwives, the researchers said.
Anna af Ugglas, chief executive of the International Confederation of Midwives (ICM) and one of the study’s authors, said:
“Nearly 1 million missing midwives means health systems are stretched beyond capacity, midwives are overworked and underpaid, and care becomes rushed and fragmented.
“Intervention rates rise, and women are more likely to experience poor-quality care or mistreatment,” she said.
“This is not only a workforce issue, it is a quality and safety issue for women and babies.”
For all women to receive safe, good-quality care before, during and after pregnancy, an additional 980,000 midwives would be needed across 181 countries, the study found.
According to previous research, universal access to midwife-delivered care could prevent two-thirds of maternal and newborn deaths and stillbirths, saving 4.3 million lives annually by 2035.
The ICM said the issue was not only a lack of training places for midwives, but also a failure in many countries to employ trained midwives where they were needed and to retain those who were working in health services.
Prof Jacqueline Dunkley-Bent, ICM’s chief midwife and another of the report’s authors, said:
“In many settings, midwives are educated but not absorbed into the workforce or not enabled to practise fully, compounding this already serious and universal shortage of midwives, and still leaving women without access to the care that midwives are trained to provide.”
More than 90% of the global midwife shortage was in low- and middle-income countries.
Africa has only 40% of the midwives it needs, the eastern Mediterranean only 31%, and the Americas just 15%, researchers found. Shortfalls were much smaller, although still present, in other regions including south-east Asia and Europe.
The study, published in the journal Women and Birth, estimated the number of midwives who would be needed to carry out a list of basic midwifery tasks for all eligible women and babies in 181 countries.
The tasks included counselling on contraception, antenatal care and screening, and care during childbirth.
Although midwife numbers were increasing, the gap between what was needed and the available workforce looked likely to “persist well into the next decade”, the researchers said – beyond the 2030 deadline set by global sustainable development.
#millions#pregnant#women#basic#care
📱American Оbserver - Stay up to date on all important events
🇺🇸
🌹 Another Dog Cared for 😍😘
👉 Another BoneDrop 🦴= 💰👈
👉 Another Street Dog Feeding
Good Job 👈👈👏👏👏
From DogData
Https://MyDogData.com🐾
https://t.me/DogDataICO👈
👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️
👉 Post 20 seconds video 🎥 into DogData Global Group
👉 Mention DogData BoneDrop
👉🤩 Get Paid and Trade now Today
👉🤩 500 ETHBN 🤩👈
#DogData#Dogs#Video#TikTok#Care#Feeding
🌹 Another Dog Cared for 😍😘
👉 Another BoneDrop 🦴= 💰👈
👉 Another Street Dog Feeding
Good Job 👈👈👏👏👏
From DogData
Https://MyDogData.com🐾
https://t.me/DogDataICO👈
👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️
👉 Post 20 seconds video 🎥 into DogData Global Group
👉 Mention DogData BoneDrop
👉🤩 Get Paid and Trade now Today
👉🤩 1000 ETHBN 🤩👈
#DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
🌹 Another Dog Cared for 😍😘
👉 Another BoneDrop 🦴= 💰👈
👉 Another Street Dog Feeding
Good Job 👈👈👏👏👏
From DogData
Https://MyDogData.com🐾
https://t.me/DogDataICO👈
👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️
👉 Post 20 seconds video 🎥 into DogData Global Group
👉 Mention DogData BoneDrop
👉🤩 Get Paid and Trade now Today
👉🤩 500 ETHBN 🤩👈
#DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
🌹 Another Dog Cared for 😍😘
👉 Another BoneDrop 🦴= 💰👈
👉 Another Street Dog Feeding
Good Job 👈👈👏👏👏
From DogData
Https://MyDogData.com🐾
https://t.me/DogDataICO👈
👉 Feed a Street Dog Table food Today ‼️‼️‼️‼️
👉 Post 20 seconds video 🎥 into DogData Global Group
👉 Mention DogData BoneDrop
👉🤩 Get Paid and Trade now Today
👉🤩 500 ETHBN 🤩👈
#DogData#Dogs#Help#Care#Feeding#ETHBN#Reward
1-oktabr – Oʻqituvchi va murabbiylar kuni
🌷 Bugun butun O‘zbekiston bo‘ylab ustoz va murabbiylarimizning beqiyos xizmatlari qadrlanmoqda.
Ular sabr-toqat, mehr va bilim bilan yosh avlodga yo‘l ko‘rsatib, har bir o‘quvchining kelajagiga nur sochadilar.
😎 Teach For Uzbekistan jamoasi sifatida biz barcha ustozlarni ushbu ezgu kasbdagi fidoyiligi, mehnati va cheksiz mehrlari uchun samimiy tabriklaymiz! 💐
#UstozVaMurabbiylarKuni#TeachForUzbekistan#Ilm#Mehr
💬💬💬
October 1 – Teachers and Mentors Day
🌷 Today, throughout Uzbekistan, the invaluable contributions of our teachers and mentors are being honored.
With patience, care, and knowledge, they guide the younger generation and illuminate the future of every student.
😎 As the Teach For Uzbekistan team, we sincerely congratulate all teachers for their dedication, hard work, and boundless love in this noble profession! 💐
#TeachersAndMentorsDay#TeachForUzbekistan#Knowledge#Care
📱Instagram🕊Telegram🔹Linkedin📱Facebook📺YouTube🌍Veb sayt
Гель для стирки "MAYERI All-Care для шерсти и шёлка" идеально подходит для изделий из шерсти, шелка, кашемира, в том числе состоящих из смешанных синтетических волокон, деликатных и кружевных тканей, трикотажа, микрофибры.
Рекомендуется стирать шерстяные и шелковые вещи при температуре 30°С, другие деликатные ткани при температуре не выше 40°С.
Действие геля "MAYERI":
✅ предотвращает деформацию и усадку одежды
✅эффективно очищает белье от загрязнений
✅деликатная формула защищает структуру шерстяных волокон
✅активная формула с эффектом защиты цвета сохраняет яркость и насыщенность красок ткани
✅не требует замачивания.
А вы заботитесь о Ваших вещях?
#гель#для#шерсти#шелка#all#care#uzbekistan#гель#эко#здоровье#выгодно#полезно