Впервые сделал крупный проект (под 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
⚡️xRocket News: EVAA DeFi Quest Claim Phase Begins
#xRocket#TON
The xRocket News announces the official start of the Claim phase for the EVAA DeFi Quest on April 16, lasting until April 24. Over 30,000 participants were involved, with anti-fraud measures successfully eliminating dishonest play, ensuring fair reward distribution.
Source: link
@tonlines
⚡️xRocket News: Staking Contest Success and Future Campaigns
#xRocket#Telegram
The recent staking contest on swap.coffee saw participants collect over 5,000 lottery tickets by staking more than 2,500,000 $XROCK, showing strong trust in xRocket's growth. While prizes have already been distributed, xRocket News announces a new campaign arriving next week, encouraging the community to achieve new trading milestones.
Source: link
@tonlines
xRocket News: Exciting Contests and Prizes in May
#xRocket#crypto
xRocket News reports on the exciting contests rolled out in early May, despite the chilly weather. The channel announced winners for several events, including a lottery and a P2P traders contest, with impressive prize pools. Enthusiasts can still participate in an ongoing raffle by staking $XROCK.
Source: link
@tonlines
xRocket News: Celebrate Cosmonautics Day with Stellar Prizes
#xRocket#Web3
xRocket News is celebrating Cosmonautics Day with a special giveaway. Participants can win cosmic-themed prizes by purchasing and holding $XROCK tokens. Winners will be announced on April 18, with prize distribution on April 21.
Source: link
@tonlines
xRocket News Highlights Staking Benefits on Swap.coffee
#staking#xRocket
xRocket News shares details about the staking opportunities for $XROCK tokens on swap.coffee. With a distribution of 333,333 tokens monthly and an APR of approximately 22.63%, users can benefit from staking. The initiative aims to support the xRocket ecosystem and offers increased returns for longer staking durations.
Source: link
@tonlines
⚠️Beware of scammers!
Since the very morning, spam transactions appeared in the @xRocket bot with a message about the pre-sale of the $XROCK token. The official channel xRocket News✔️announced a reminder:
We want to remind you that we held no presales or any sales at the moment, especially outside the bot. Don't send your funds to any wallets in order to buy $XROCK. All trades will be in pair XROCK-USDT at 11-00 UTC. There is no other place where you can buy $XROCK
Attention! The #SCAM message comes specifically from the #xRocket bot and looks like a native message from the project, but it is just a comment on the transaction for 0.002 USDT
Trading Competition: Baby Doge Coin on xRocket
#xRocket#BabyDoge
xRocket News announces the listing of Baby Doge Coin on xRocket with a trading competition. Participants trading the $1MBABYDOGE/$TON pair can win a share of the $5,000 prize pool, with the competition running from May 21 to May 28. Baby Doge Coin, a popular meme token on Binance Smart Chain, is now integrated with xRocket’s SocialFi tools.
Source: link
@tonlines
xRocket News: xJourney Launches Wheel of Fortune
#xRocket#xJourney
xRocket News announces the launch of xJourney’s Wheel of Fortune, a new feature that allows community members to use xPoints for valuable prizes including tickets for mega-prize giveaways. The event will start once 500,000,000 xPoints are burned, with prizes such as a PlayStation 5 and $XROCK available.
Source: link
@tonlines
⚡️xRocket News: Exciting Updates for xJourney
#xRocket#xJourney
xRocket News announces major updates in the xRocket ecosystem with xJourney now offering daily $XROCK payouts. The top 3 users on the leaderboard earn significant bonuses while others have opportunities through a daily raffle. Daily leaderboard resets ensure continuous engagement and reward distribution.
Source: link
@tonlines
⚡️xRocket News: Epic Star Wars Giveaway Details!
#xRocket#StarWars
xRocket News presents an exciting Star Wars-themed giveaway with over 20 prizes worth more than 1,000 USDT for fans. Participants can earn tickets by purchasing and holding 500 $XROCK, with winners announced on May 14. All prize details are available on @rocketman's profile.
Source: link
@tonlines
✉ xQuest — What's Next?
💬The Earn phase in xQuest Launch has officially ended. Over 125,000 users completed various quest tasks: from learning basic xRocket features to mastering trading and staking. This impressive result demonstrates high interest in the new platform.
⏺➕Now the Calculationphase is going, during which the campaign results will be summarize.
💰 After calculations, the Сlaim phase will begin – from March 3rd to March 10th, participants of the first xQuest campaign can claim their earned rewards and share the prize pool of 300,000 $XROCK (~$7750).
Trade on xRocket exchange
#xQuest#xRocket
🚀$XROCK is now on CoinMarketCap and CoinGecko
$XROCK token appeared on CoinMarketCapandCoinGecko, the largest crypto platforms. This means that you can now track all project information on independent sites in a convenient format.
CoinMarketCap is the world's most popular cryptocurrency price tracking website, with over 350 million monthly visitors !
CoinGecko is one of the largest aggregators of information related to cryptocurrencies, tokens, crypto exchanges, NFTs, DeFi, which offers more than 11 thousand coins
⭐ Placing on these platforms will allow you to attract the attention of even more users and conquer new blockchain peaks!
#TON#xRocket#token