Впервые сделал крупный проект (под 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
❤️TON Dating launched on Telegram
The former head of VK Dating launched a new dating application on the TON blockchain in #Telegram.
To create a profile, you need to go through multi-step verification. As Makhov explains, the identity verification algorithm works according to the principles of online banking. To register, you need to provide your first and last name, Instagram profile, upload three photos and send a selfie.
Girls can use TON Dating for free, and for men a monthly subscription will cost 2500 Stars⭐️(€57.99). At the same time, users can monetize their actions in the application.
For “friend invitations,” “likes,” and “matches,” the service pays a reward in the Toncoin cryptocurrency, the size of which depends on the activity.
Investments in developing the application amounted to $100 thousand. Payments of rewards are made through the redistribution of part of the money from subscriptions. According to the founder, within three years #TONDating plans to attract at least 0.1% of Telegram and #TON users from the CIS countries, the Middle East, North Africa, Europe and Asia.
The service pays rewards in #Toncoin for user actions, so if you still like for free on Tinder, then it's for you❤️
@tondating✔️
🎧⤴
TON Dating Unleashes New Filters—Are They Revolutionizing Online Matchmaking?
- New Filters:TON Dating introduces advanced filters including industry, height, eye color, and zodiac sign. Age and location filters now have an automatic expansion option.
- Enhanced Matching: Improved visibility for interest matches and likes, making it easier to find mutual connections. Men can also filter to see only those who liked them.
- User Experience: A new profile preview feature lets users see how their profiles appear to others. Registration for men no longer requires an Instagram account, simplifying the process.
Verse 1:
Filters on deck, yeah, I'm swiping with finesse,
Height, zodiac, eyes—got my standards, nothing less.
Profiles poppin', see who likes you in a sec,
Match, earn that Toncoin, yeah, we chasing that check.
Chorus:
Swipe right, match tight, filters in the night,
Crypto in my wallet, future looking bright.
TON's the app, making moves, keeping it tight,
Find your match, make it last, everything's in sight.
Verse 2:
No 'gram needed, just a smile and a vibe,
Men, you know who likes you, keep that energy high.
Interest matches lit, common ground we can't deny,
On this blockchain journey, love and money coincide.
Chorus:
Swipe right, match tight, filters in the night,
Crypto in my wallet, future looking bright.
TON's the app, making moves, keeping it tight,
Find your match, make it last, everything's in sight.
Bridge:
From the chat to the heart, blockchain sets us apart,
Earnin' while you lovin', that's the realest art.
Step up your game, don't let this chance slip away,
TON Dating's the wave, it's a brand-new day.
#TONDating
#Dating
#Ton
🎧@toncoin_rap
🎧⤴
TON Dating: AI-Powered Compatibility Checks with ChatGPT!
TON Dating has become the first dating app to integrate ChatGPT, offering a new feature that analyzes compatibility between users. By clicking on the ChatGPT icon in a profile, the AI examines both users' data to determine their match potential. This move aims to enhance the dating experience within a verified, secure community that rewards user engagement with cryptocurrency. The integration sets TON Dating apart, offering a futuristic, AI-driven approach to finding meaningful connections on the platform.
😴👉https://t.me/tondating
Chorus:
TON Dating's blowing up, with ChatGPT inside,
AI's your new matchmaker, taking love on a ride.
Swipe right, swipe left, let the AI decide,
Finding true connections where ambition and love collide.
Verse 1:
Step into the game, TON's raising the stakes,
AI compatibility, no more heartbreaks.
Profiles verified, no scammers in sight,
Pay-to-play, yeah, but it feels just right.
Girls roll free, boys paying their dues,
Crypto rewards for every match you choose.
Swipe with intention, love or coin’s the prize,
TON Dating's got the edge, no surprise.
Chorus:
TON Dating's blowing up, with ChatGPT inside,
AI's your new matchmaker, taking love on a ride.
Swipe right, swipe left, let the AI decide,
Finding true connections where ambition and love collide.
Verse 2:
Ambition meets beauty, the motto’s legit,
Profiles vetted hard, so no catfish hit.
Vlad’s got a vision, safe space to thrive,
No fake accounts here, just the real ones alive.
Stack your TON coin, let your profile shine,
The app’s got your back with AI design.
Success and smarts, it’s the ultimate find,
TON Dating’s got that AI mastermind.
Chorus:
TON Dating's blowing up, with ChatGPT inside,
AI's your new matchmaker, taking love on a ride.
Swipe right, swipe left, let the AI decide,
Finding true connections where ambition and love collide.
Verse 3:
Crypto’s the future, and dating’s the key,
Bringing people closer through technology.
ChatGPT whispers, "Is this love or a game?"
It’s matchmaking magic, never quite the same.
Filter out the fakes, meet your match on screen,
High standards, high hopes in this dating scene.
From Telegram to TON, the platform's tight,
Find your perfect vibe, under AI light.
Chorus:
TON Dating's blowing up, with ChatGPT inside,
AI's your new matchmaker, taking love on a ride.
Swipe right, swipe left, let the AI decide,
Finding true connections where ambition and love collide.
Bridge:
So step up to the future, the game just begun,
With ChatGPT matching, you might find "the one."
It’s a new world, new rules, tech by your side,
TON Dating’s the place where love and crypto collide.
#TONDating#AIDating#ChatGPTMatch
#TONCryptoNewsRapStyle
🎧@toncoin_rap