title: Ð Ð°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ° Ð¼Ð°ÑÑÑÐ°Ð±Ð¸ÑÑÐµÐ¼Ð¾Ð³Ð¾ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ° Ð´Ð»Ñ ÑÐ°Ð±Ð¾ÑÑ Ñ Ð¼Ð¾Ð´ÐµÐ»ÑÐ¼Ð¸ Stable Diffusion Ð² serverless Ð°ÑÑ Ð¸ÑÐµÐºÑÑÑÐµ
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: Developing a scalable web service for working with Stable Diffusion models in a serverless architecture
Creators: name: Ð¡Ð¿Ð¸ÑÐ¸Ð´Ð¾Ð½Ð¾Ð², ÐÐ¼Ð¸ÑÑÐ¸Ð¹
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2024
Subjects: Ð¼Ð°ÑÑÑÐ°Ð±Ð¸ÑÑÐµÐ¼ÑÐ¹ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸Ñ
Ð±ÐµÑÑÐµÑÐ²ÐµÑÐ½ÑÐµ Ð²ÑÑÐ¸ÑÐ»ÐµÐ½Ð¸Ñ
stable diffusion
Ð¾Ð±Ð»Ð°ÑÐ½Ð°Ñ Ð°ÑÑ Ð¸ÑÐµÐºÑÑÑÐ°
Ð°Ð²ÑÐ¾Ð¼Ð°ÑÐ¸ÑÐµÑÐºÐ¾Ðµ Ð¼Ð°ÑÑÑÐ°Ð±Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ
scalable web service
serverless computing
cloud architecture
auto scaling

description: ÐÑÐµÐ´Ð¼ÐµÑÐ¾Ð¼ ÑÐ°Ð±Ð¾ÑÑ ÑÐ²Ð»ÑÑÑÑÑ ÑÐµÑÐ½Ð¾Ð»Ð¾Ð³Ð¸Ð¸ Ð¸ Ð¸Ð½ÑÑÑÑÐ¼ÐµÐ½ÑÑ, ÐºÐ¾ÑÐ¾ÑÑÐµ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÑÑ Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¼Ð°ÑÑÑÐ°Ð±Ð¸ÑÑÐµÐ¼ÑÑ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ¾Ð², Ð° ÑÐ°ÐºÐ¶Ðµ Ð°ÑÑÐ¸ÑÐµÐºÑÑÑÐ½ÑÐµ Ð¿Ð¾Ð´ÑÐ¾Ð´Ñ, Ð¿ÑÐ¸Ð¼ÐµÐ½ÑÐµÐ¼ÑÐµ Ð´Ð»Ñ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ¸ ÑÐ¸ÑÑÐµÐ¼ Ð½Ð° Ð±Ð°Ð·Ðµ Ð¼Ð¾Ð´ÐµÐ»ÐµÐ¹ Ð³Ð»ÑÐ±Ð¾ÐºÐ¾Ð³Ð¾ Ð¾Ð±ÑÑÐµÐ½Ð¸Ñ. Ð¦ÐµÐ»Ñ Ð²ÑÐ¿ÑÑÐºÐ½Ð¾Ð¹ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÑ Ð·Ð°ÐºÐ»ÑÑÐ°ÐµÑÑÑ Ð² ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐµ Ð¼Ð°ÑÑÑÐ°Ð±Ð¸ÑÑÐµÐ¼Ð¾Ð³Ð¾ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ° Ð´Ð»Ñ ÑÐ°Ð±Ð¾ÑÑ Ñ Ð¼Ð¾Ð´ÐµÐ»ÑÐ¼Ð¸ Stable Diffusion. Ð ÑÐ¾Ð´Ðµ ÑÐ°Ð±Ð¾ÑÑ Ð±ÑÐ»Ð¸ ÑÐ°ÑÑÐ¼Ð¾ÑÑÐµÐ½Ñ ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÐµ ÑÐµÑÐ½Ð¾Ð»Ð¾Ð³Ð¸Ð¸, Ð¸ÑÐ¿Ð¾Ð»ÑÐ·ÑÑÑÐ¸ÐµÑÑ Ð´Ð»Ñ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐºÐ¸ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ¾Ð². ÐÐ±Ð¾ÑÐ½Ð¾Ð²Ð°Ð½ Ð²ÑÐ±Ð¾Ñ Ð¾Ð±Ð»Ð°ÑÐ½Ð¾Ð³Ð¾ Ð¿ÑÐ¾Ð²Ð°Ð¹Ð´ÐµÑÐ° Ð´Ð»Ñ ÑÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ Ð¿ÑÐ¾ÐµÐºÑÐ°. Ð¡Ð¿ÑÐ¾ÐµÐºÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð° ÑÑÑÑÐºÑÑÑÐ° Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ°, Ð¾Ð¿ÑÐµÐ´ÐµÐ»ÐµÐ½Ñ ÑÑÐ½ÐºÑÐ¸Ð¾Ð½Ð°Ð»ÑÐ½ÑÐµ ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐ°Ð½Ñ ÑÑÐµÐ½Ð°ÑÐ¸Ð¸ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ. Ð ÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ñ ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½ÑÑ ÑÐ¸ÑÑÐµÐ¼Ñ, ÑÐ°ÐºÐ¸Ðµ ÐºÐ°Ðº API, ÑÐ°Ð±Ð¾ÑÐ°Ñ Ð¾ÑÐµÑÐµÐ´Ñ. Ð¡Ð¾Ð·Ð´Ð°Ð½Ð° ÑÐ¸ÑÑÐµÐ¼Ð° Ð°ÑÑÐµÐ½ÑÐ¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¸ Ð¸ Ð°Ð²ÑÐ¾ÑÐ¸Ð·Ð°ÑÐ¸Ð¸. ÐÑÐ¾Ð¸Ð·Ð²ÐµÐ´ÐµÐ½Ñ ÑÑÐ½ÐºÑÐ¸Ð¾Ð½Ð°Ð»ÑÐ½Ð¾Ðµ Ð¸ Ð½Ð°Ð³ÑÑÐ·Ð¾ÑÐ½Ð¾Ðµ ÑÐµÑÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ Ð¸ Ð°Ð¿ÑÐ¾Ð±Ð°ÑÐ¸Ñ ÑÐµÑÐ²Ð¸ÑÐ°. Ð¡Ð¾Ð·Ð´Ð°Ð½Ñ Ð°Ð½ÐºÐµÑÑ Ð´Ð»Ñ Ð¾Ð±ÑÐ°ÑÐ½Ð¾Ð¹ ÑÐ²ÑÐ·Ð¸, ÑÐ°Ð·Ð²ÐµÑÐ½ÑÑ Ð¿ÑÐ±Ð»Ð¸ÑÐ½ÑÐ¹ API. ÐÐ° Ð¾ÑÐ½Ð¾Ð²Ðµ ÑÐ¾Ð±ÑÐ°Ð½Ð½ÑÑ ÑÐµÐ·ÑÐ»ÑÑÐ°ÑÐ¾Ð² ÑÐ´ÐµÐ»Ð°Ð½Ñ Ð²ÑÐ²Ð¾Ð´Ñ Ð¾ ÑÐ°Ð±Ð¾ÑÐ¾ÑÐ¿Ð¾ÑÐ¾Ð±Ð½Ð¾ÑÑÐ¸ Ð¸ ÑÑÑÐµÐºÑÐ¸Ð²Ð½Ð¾ÑÑÐ¸ Ð¿ÑÐµÐ´Ð»Ð¾Ð¶ÐµÐ½Ð½Ð¾Ð³Ð¾ ÑÐµÑÐµÐ½Ð¸Ñ. ÐÐ°ÑÐµÑÐ¸Ð°Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ ÑÐ°Ð±Ð¾ÑÑ Ð¼Ð¾Ð³ÑÑ Ð±ÑÑÑ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ñ Ð´Ð»Ñ Ð¿Ð¾ÑÑÑÐ¾ÐµÐ½Ð¸Ñ ÑÐ°Ð·Ð»Ð¸ÑÐ½ÑÑ Ð²ÑÑÐ¾ÐºÐ¾Ð¿ÑÐ¾Ð¸Ð·Ð²Ð¾Ð´Ð¸ÑÐµÐ»ÑÐ½ÑÑ Ð²ÐµÐ±-ÑÐµÑÐ²Ð¸ÑÐ¾Ð² Ñ Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸ÐµÐ¼ Ð±ÐµÑÑÐµÑÐ²ÐµÑÐ½Ð¾Ð¹ Ð°ÑÑÐ¸ÑÐµÐºÑÑÑÑ, Ð° ÑÐ°ÐºÐ¶Ðµ Ð´Ð»Ñ Ð¾Ð¿ÑÐ¸Ð¼Ð¸Ð·Ð°ÑÐ¸Ð¸ ÑÑÑÐµÑÑÐ²ÑÑÑÐ¸Ñ ÑÐ¸ÑÑÐµÐ¼ Ñ ÑÐµÐ»ÑÑ Ð¿Ð¾Ð²ÑÑÐµÐ½Ð¸Ñ Ð¸Ñ Ð¿ÑÐ¾Ð¸Ð·Ð²Ð¾Ð´Ð¸ÑÐµÐ»ÑÐ½Ð¾ÑÑÐ¸ Ð¸ Ð³Ð¸Ð±ÐºÐ¾ÑÑÐ¸.
description: The subject of this work is the technologies and tools used for creating scalable web services, as well as architectural approaches applied in the development of systems based on deep learning models. The aim of the thesis is to develop a scalable web service for working with Stable Diffusion models. Various technologies used for web service development were considered during the project. The choice of a cloud provider for the implementation of the project was justified. The structure of the web service was designed, functional requirements were defined, and usage scenarios were developed. System components such as the API and work queue were implemented. An authentication and authorization system was created. Functional and load testing, as well as service testing, were performed. Feedback forms were created, and a public API was deployed. Based on the collected results, conclusions were made about the operability and effectiveness of the proposed solution. The materials of this work can be used for building various high-performance web services using serverless architecture, as well as for optimizing existing systems to improve their performance and flexibility.