w4ffl35 / stablediffusiond

A daemon which watches a queue and runs stable diffusion.
BSD 3-Clause "New" or "Revised" License
29 stars 3 forks source link

Remove RabbitMQ from being a hard dependency #17

Open johndpope opened 2 years ago

johndpope commented 2 years ago

there exists a local version of aws sqs - called elascitmq https://github.com/softwaremill/elasticmq

it seems like a better option and would get faster to production version.

w4ffl35 commented 2 years ago

Thanks I'll take a look at this. I have some improvements I'll be pushing later tonight as well.

w4ffl35 commented 2 years ago

@johndpope this looks good I'll give it a try.

johndpope commented 2 years ago

if you have docker - you can stand this up just running

docker compose up

then just hit this locally using endpoint 0.0.0.0:9324

https://github.com/naokirin/docker_compose_elasticmq/blob/main/docker-compose.yml


version: '3'

services:
  elasticmq:
    image: softwaremill/elasticmq
    ports:
    - "9324:9324"
    - "9325:9325"
    volumes:
    - type: bind
      source: ./custom.conf
      target: /opt/elasticmq.conf
w4ffl35 commented 2 years ago

This is in progress. I likely will not implement the Amazon portion, however I have started working on a branch which allows queues using python SimpleQueue

https://github.com/w4ffl35/stablediffusiond/tree/feature/test-without-rabbitmq