Details: Cloud Run runs our spring boot backend connecting between the flutter app and the stable diffusion image generator. The backend has a database that saves the prompt and some other image metadata to be served to the frontend.
Details: We use a managed Postgres database to store image metadata such as the prompt, seed, user that created the image and whether they chose to publish it.
Artifact Registry
Details: Artifact registry is used to provide a docker registry for our backend. Docker images are built and published to the repository via GitHub actions.