Впервые сделал крупный проект (под 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
SEC Launches Crypto Task Force Today
📈 SEC Acting Chairman Mark T. Uyeda announced the formation of a new Crypto Task Force, led by Commissioner Hester Peirce, aimed at establishing a clear regulatory framework for crypto assets. This initiative is crucial in developing comprehensive guidelines to navigate the evolving crypto landscape. Read more
#Crypto#SEC#Regulations#Blockchain#Finance
🥤Bali will ban water in plastic bottles
📰 The provincial government of Bali will ban the use of plastic water bottles from February 3, 2025.
🏫 However, the new governor's decree will not affect everyone. To begin with, students of local schools and government officials will have to give up single-use plastic. They are offered to acquire reusable water containers.
♻️ The main goal is to make children and teenagers realize that the amount of plastic waste must be reduced.
🚯 In addition, the Indonesian government is launching a pilot project to promote the concept of “clean tourism” in Bali. The project includes practical activities such as improving infrastructure for waste management, educating local communities and implementing standards to ensure clean beaches, public spaces and natural attractions.
@BaliNews
#environment#projects#regulations
Russian government considers amendments to fines for "popular" violations of traffic regulations.
📌The use of seat belts- from 1 thousand to 1.5 thousand rubles (Article 12.6 of Administrative Code);
📌Driving a vehicle under influence of alcohol or transferring right to drive a vehicle- from 30 thousand to 45 thousand rubles (Article 12.8 of Administrative Code);
📌Refusal of medical examination- from 30 thousand to 45 thousand rubles (Article 12.26 of Administrative Code);
📌Speeding — from 500-5000 rubles to 750-7500 rubles (Article 12.9 of Administrative Code);
📌failure to comply with requirements of road signs or markings- from 500-5000 rubles to 750-7500 rubles (Article 12.15 of Administrative Code);
📌Causing minor harm to health- from 2500-5000 rubles to 3700-7500 rubles (Article 12.24 of Administrative Code)
📌Causing average harm to health- 10-20 thousand rubles to 15-30 thousand rubles (Article 12.24 of Administrative Code).
#news#russia#nido_russia#transport#regulations
https://t.me/nido_russia
🚗Китай запрещает скрытые дверные ручки в машинах: безопасность превыше всего 🚨
Китай стал первой страной, запретившей использование скрытой конструкции электронных дверных ручек, популярной в автомобилях Tesla (TSLA). Новое постановление Министерства промышленности и информационных технологий вступает в силу с 1 января 2027 года. Автомобили, прошедшие регистрацию до этого момента, должны адаптироваться к изменениям до 1 января 2029 года.
🔥 Причина запрета связана с серией трагедий, произошедших в Китае. Две аварии с участием электромобилей Xiaomi (XIACY) привели к гибели пассажиров, заблокировавшимся внутри автомобилей из-за неисправности электропитания.
Проблема безопасности дверей электромобилей давно беспокоит автовладельцев и власти. Только с 2018 года Национальное управление безопасности дорожного движения США (NHTSA) зарегистрировало более 140 сообщений о неполадках с дверьми Tesla (TSLA), когда двери оставались закрытыми или работали неправильно. Наиболее известной катастрофой стала гибель мужчины и двоих детей в Германии, которые не смогли покинуть горящую машину Tesla (TSLA) после столкновения.
🌍 Европейские регулирующие органы также внимательно относятся к вопросам безопасности дверных механизмов, рассматривая введение аналогичных требований.
Хотя большинство автомобилей Tesla оснащены механическим способом открытия дверей на случай отказа электроники, новый китайский регламент призван предотвратить подобные трагедии и усилить стандарты безопасности для пассажиров.
#China#Tesla#AutomotiveSafety#ElectricCars#Regulations
😱 Узнайте больше о мировых рынках и экономике — переходите по ссылке!
The increase in fines for a number of traffic violations will come into force on January 1, 2025
📌"In Article 2, the word" Law "should be replaced with the words "Federal Law", the words "after thirty days from the date of its official publication" should be replaced with the words "from January 1, 2025," the text of the amendment posted in the Duma electronic database says.
📌Under this law, failure by a driver to perform the duty to insure his civil liability, as well as driving a vehicle, if the Compulsory third Party Insurance (CTP) policy is deliberately absent, entails the imposition of an administrative fine in the amount of 800 rubles.
📌Earlier, the Parliament of the Kabardino-Balkar Republic submitted to the State Duma a bill that proposes to establish a fine for repeated violation of the Administrative Code of the Russian Federation, namely the absence of a driver's CTP policy, up to 5 thousand rubles.
CTP policy means Compulsory Third Party Insurance Policy
#news#russia#nido_russia#traffic#fine#regulations
https://t.me/nido_russia
Crypto Leader Rejects New Tax Proposal
David Sachs, dubbed the "Crypto Tsar," opposes a proposed 0.01% tax on crypto transactions aimed at funding a national Bitcoin reserve. He criticized the idea, noting that modest taxes often expand over time, referencing the origin of the income tax. Despite his opposition, Sachs acknowledges the possibility of such taxes being implemented in the future.
For more details, read the full article here.
#Crypto#Tax#Bitcoin#DavidSachs#Regulations
BestChange Unblocked in Russia Again
The Russian Federal Service for Supervision of Communications, Information Technology and Mass Media (Roskomnadzor) has lifted all restrictions on BestChange, the largest cryptocurrency exchange aggregator, which is once again accessible to users across Russia. This decision comes after the platform was previously blocked, impacting millions of users.
#BestChange#Crypto#Russia#Regulations#Trading
Bitcoin Price Prediction for 2025
James Butterfill, CoinShares head of research, forecasts Bitcoin to hit $80K-$150K in 2025. Trump's pre-election promises could influence the price towards the lower end, while better U.S. regulations might propel it higher. Long-term, Bitcoin's market cap may rise to 25% of gold's, potentially pushing prices to $250K, though this is not expected this year. Details: CoinShares Research
#Bitcoin#Crypto#VC#PricePrediction#MarketCap#Regulations#Gold
🚀 South Korea Implements New Rules for Managing Public-Sector Virtual Assets
South Korea has approved a plan to manage 78 billion won, equivalent to approximately $57.7 million, in public-sector virtual assets. According to NS3.AI, the new regulations mandate that any seized or confiscated cryptocurrency from personal wallets must be promptly transferred to an institutional cold wallet, which is not connected to the internet. Additionally, the rules stipulate that private keys and recovery phrases must be controlled by at least two individuals through a split-access arrangement.
#SouthKorea#PublicSector#VirtualAssets#Cryptocurrency#Regulations#DigitalAssets#CryptoSecurity#ColdWallet#Blockchain#CryptoPolicy
Hedera's ETF Potential and Price Correction
Hedera ($HBAR) emerges as a strong contender for a spot ETF in the USA, driven by its ecosystem development and high standards in security and transparency. Currently, it faces a correction after testing a resistance level at $0.260, now moving towards a support zone at $0.195. A sideways movement is anticipated in the coming weeks. BTC price aims for $84,000. Read more: Leviathan News
#Hedera#ETF#Crypto#HBAR#Bitcoin#Investing#Markets#Regulations
Wall Street Banks Target Crypto Revenues
Bloomberg reports that major Wall Street banks are strategizing to engage with the cryptocurrency sector amid changing regulations in the U.S. They believe support from Donald Trump could trigger a wave of IPOs and lucrative transactions in the market. Read more about it here.
#Crypto#USA#WallStreet#Banks#Regulations#DonaldTrump
🚀 France Advocates for Enhanced Crypto Regulations Amid MiCA Concerns
French authorities are advocating for stricter cryptocurrency regulations, focusing on stablecoins issued by non-European entities. According to NS3.AI, a Bank of France official, Denis Beau, has called for tighter limits under the Markets in Crypto-Assets (MiCA) framework, specifically targeting non-euro stablecoin payments. Beau expressed concerns that the current MiCA rules only partially mitigate risks associated with the widespread adoption of these stablecoins.
In addition, France's National Assembly has adopted a provision requiring self-custody reporting for cryptocurrency holdings exceeding a 5,000 euro threshold. However, this measure has not yet completed the legislative process, indicating ongoing discussions and potential adjustments before final implementation. The move reflects France's proactive stance in addressing regulatory challenges posed by the evolving crypto landscape.
#France#crypto#regulations#stablecoins#MiCA#BankofFrance#DenisBeau#NationalAssembly#cryptocurrency#selfcustody#legislation