madiele / book2pod-rss

MIT License
1 stars 0 forks source link

book generation queue #4

Open madiele opened 4 months ago

madiele commented 4 months ago

when a chapter is requested for generation its hash will be used to identify it

generation is grouped by hash, the same hash can not be generated in parallel

book can have chapter generated in parallel

when dequeued there will be a check to prevent the same chapter to be generated twice

madiele commented 4 months ago

https://github.com/rabbitmq/rabbitmq-consistent-hash-exchange

8 queues with same weight

publish routing key = hash of the text in the message

1 exchange -> routing with hash -> 8 queues -> x consumers listening on queues