Впервые сделал крупный проект (под 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 melancholic unearthly attractive albino goddess with pale skin in a elegant dress, she is petting black human's arms that form out of the darkness. It annoying her but beautiful at the same time, magazine cover, fashion shot --ar 4:5 --v 7 --draft
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --v 7
by prisenkoan
#fantasy
📣 Midjourney prompts
photorealistic tall-format scene in Ralph Lauren rustic-luxury style. A woman with long, beautifully coiffed black hair stands by a large-paned window inside a refined, moody room. She wears a flowing satin gown and robe, gazing at a violent storm outside. The storm is fierce and foreboding, with trees bending in the wind, swirling leaves, heavy rain slashing against the window, and distant lightning illuminating a stormy night sky. The room is warm and opulent, lit by soft candlelight and a glowing fireplace. Equestrian and vintage Americana decor--dark wood, leather armchairs, and brass accents. Color palette: deep navy, burgundy, forest green, warm amber. Mood: cinematic, gothic, powerful, a sanctuary against the untamed storm --ar 3:4 --style raw --v 6.1
by daci_zaha
#fantasy
📣Midjourney prompts
establish shot of a middle-aged ancient persian general warrior sleeping under a tree. his white horse is standing far on the vast field, wears an ornate helmet of a skull with a pair of curved horns extend from the sides it, He is clad in elaborate armor of tiger-skin, a red sash around his waist, and decorative golden knee guards, cinematic shot, night time --ar 9:16 --v 6.1
by jarrell_odonell77
#fantasy
📣Midjourney prompts
A cosmic void with a glowing green portal slowly opening. The portal’s edges shimmer with crackling energy, and ghostly, tentacle-like forms begin to emerge. The scene is filled with swirling, otherworldly clouds in shades of green and purple, creating a hypnotic vortex effect. In the foreground, a solitary cultist stands on a jagged rock outcrop, arms raised toward the portal in supplication. The camera captures the moment from a low angle, emphasizing the grandeur of the portal and the cultist’s insignificance in comparison. The lighting is surreal, with the portal casting eerie shadows across the landscape. --ar 16:9 --v 6.1
by nsihi_01366
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --p 78qe8bg --v 6.1
by prisenkoan
#fantasy
📣 Midjourney prompts
A foggy Victorian-era forest with a hidden ancient stone altar covered in strange, glowing runes. A horned shadow looms over the altar, barely visible through the mist. The atmosphere is tense and foreboding, with twisted trees forming claw-like shapes and the ground littered with broken branches. – sepia filter, Victorian horror, haunting and mystical --ar 16:9 --v 6.1
by max3en
#fantasy
📣 Midjourney prompts
In the secluded and mysterious deep mountains, a huge pale blue mushroom is scattering spores, as if communicating with the surrounding environment. This scene is presented in a long shot composition. The top of the mushroom emits soft light, and the stem part has fine textures. The picture adopts a surreal photography style, integrates fantasy art aesthetics, has studio lights, has the strange beauty of Chinese style, exquisite lines, is rendered by Unreal Engine, presenting 8K movie effects and real light and shadow effects --ar 9:16 --v 6.1
by ellie_21352
#fantasy
📣 Midjourney prompts
A close-up portrait of a mystical figure with a dual persona. One side of their face is adorned with intricate golden armor, detailed with elegant patterns and flourishes. The other side is engulfed in dark, organic shadows that resemble living flames or smoky tendrils, blending seamlessly into their skin. Their eyes are strikingly different: one a piercing, icy blue and the other a fiery, intense amber. The figure’s gloved hands, dark and clawed, frame their face as they look forward with a mix of allure and mystery. Soft, wavy hair cascades around them, highlighted by warm lighting that contrasts beautifully with the darkness. The mood is surreal and fantasy-inspired, blending beauty and darkness with high detail and dramatic lighting --ar 9:16 --v 6.1
by boombamblum1
#fantasy
📣 Midjourney prompts
An antique hand holding the sacred heart of divine love, with silver ornaments and rays around it, in the style of hyper-realistic photography. --ar 85:128 --v 6.1 --p kqus8w7 --s 90
by cherryoasis
#fantasy
📣 Midjourney prompts