Впервые сделал крупный проект (под 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
A vibrant, whimsical acrylic painting of a cheerful peacock mid-jump, executed in a "naive art" or "folk art" style. The peacock has a simplified, rounded pink face with a small smile and long, thin black whiskers. Its body is elongated and segmented with bold turquoise and bright pink horizontal stripes. The background is a textured, painterly mix of saturated orange, sunny yellow, and soft violet with visible brushstrokes and "grungy" distressed edges. Incorporate large, decorative circular "eye" patterns on the peacock's body or in the air around it, featuring concentric rings of teal, red, and white dots. Use a bold color palette of hot pink, cyan, orange, and yellow, with thin, sketchy black ink outlines and whimsical white dotted accents throughout the composition. Make it a vertical one with an aspect ratio of 9:16
#made by @ai_artz _4o
@ai_artz🦚
A vibrant digital painting in anime style, vertical 9:16 aspect ratio. A black cat is sitting on a metal balcony rail in an urban environment, seen from behind, gazing up at a giant Saturn-like planet in the sky. The planet is partially covered by clouds and fades naturally into the swirling sunset sky. The sky transitions from warm golden and orange tones near the horizon to deep purples and blues above. The city below is bathed in warm sunlight, with rooftops, distant buildings, and subtle power lines adding depth. The overall mood is serene and dreamlike, evoking quiet wonder.
#made by @ai_artz _4o iG
@ai_artz🎨
A mesmerizing nocturne painting capturing a city at midnight, reminiscent of the style of Mariusz Lewandowski. The city streets are cloaked in darkness, with only dim lights illuminating the cobblestone pathways. A lonely streetlamp casts a warm, golden glow, while the buildings in the background loom ominously in the shadows. A few silhouettes of trees and billowing curtains add depth to the scene, while the silence is palpable. The oil painting exudes a sense of serenity and solitude, with rich, textured brushstrokes that bring the city to life.
#made by @ai_artz _Ideogram v1.0
@ai_artz🎨
Sorry guys, the AI forgot the chair 😄
A photo of a man painting a pink flower on a canvas amidst the ruins of a dilapidated structure. The background is filled with debris and the structure's remains. The man is wearing work attire and is focused on his painting. The overall image has a desolate atmosphere, but the act of painting a flower brings a sense of hope and resilience. --v 6.1 --ar 9:16
#made by @ai_artz _Midjourney v6.1
@ai_artz🍀
A photograph of a city street during a sunset. The sky is a deep pink color, and the buildings are contrasted against it. There are a few cars on the street, and the street lights are on. The image has a warm feeling to it.
#made by @ai_artz _Ideogram v1.0
@ai_artz🌆
A woman holding a fire that is in a shape of heart on a beach. The sun almost went down and we can barely see the woman.
#made by @ai_artz _Ideogram v1.0
@ai_artz❤️🔥
Full-body portrait of a man in a futuristic, cyberpunk city at night, wearing a dark, hooded jacket with glowing, red eyes and a high-tech mask. The jacket is detailed with intricate patterns and subtle wear, giving a gritty, dystopian feel. The background features a cityscape with tall buildings, neon lights, and glowing advertisements, evoking a high-tech, immersive atmosphere. The man has a menacing presence, with the neon lights reflecting off his gear and a sense of mystery surrounding him --v 6 --ar 9:16 --s 50
#made by @ai_artz _Midjourney v6.0
@ai_artz🤖
An enchanting night sky with vibrant orange and purple clouds illuminated by a fading sunset. A vintage Volkswagen van parked on a dark, desolate road, with faint hints of a desert landscape in the background. The sky is filled with stars, creating a serene yet mysterious atmosphere. The colors blend seamlessly from the dark road to the colorful clouds, creating a captivating contrast. --v 6 --ar 9:16
#made by @ai_artz _Midjourney v6.0
@ai_artz🌿
A serene sunset scene with a vibrant pink and purple sky, viewed from a grassy hill. In the foreground, two people are lying down, only their legs visible, dressed casually in white sneakers and Converse shoes, and wearing light-colored pants. The foreground also features a garden bed with red and pink flowers. The middle ground includes a few people scattered across the grass, enjoying the view. In the background, a calm lake reflects the sunset, with distant silhouettes of hills and trees. The overall atmosphere is calm and romantic, with the soft lighting creating a warm and inviting vibe.
#made by @AI_artz _Midjourney v6.0
@ai_artz🌿
A charming traditional Japanese-style storefront at night, illuminated by warm glowing lanterns and cozy interior lights. The shop has wooden frames, a blue fabric awning with Japanese text, and a window showcasing various food items, bottles, and decorations. Lush greenery surrounds the entrance, with potted plants and vines. A cute panda statue sits on one side, adding a whimsical touch. The scene features intricate details, soft warm lighting, and a serene atmosphere. Highly detailed, cinematic composition, 2D anime style, vibrant and rich colors --ar 3:4 --v 6.1
#made by @ai_artz _Midjourney v6.1
@ai_artz🐼
An award winning photograph of a street photo of an old man sitting on a subway, wearing a casual cloth with buttons. He is looking slightly to the side. The lighting is soft, emphasizing the subject's natural features, and the background is slightly blurred, showing part of a subway interior. The image is framed with a Polaroid-style border, and subtle handwritten text "AI_artz" is written on the lower part of the frame. The overall mood of the scene feels calm and introspective, with a focus on the old man's expression and the quietness of the moment. Use natural colors and a real-life aesthetic. --ar 9:16 --v 6.1
#made by @ai_artz _Midjoireny v6.1
@ai_artz🔡
A dimly lit abstract oil painting of a cat and a dog sitting on a table. The table has a candle, a bowl of fruit, and a few other items. The cat and the dog have curious expressions. The background is a shadowy room with a few visible objects.
#made by @ai_artz _Ideogram 2
@ai_artz