Hi, Have you looked into the topic exchange?
Cheers, Alvaro On Wed, Apr 9, 2014 at 11:32 AM, Tobias Bühlmann <[email protected]> wrote: > Hey, > > I'm pretty new to RabbitMQ and AMQP in general and I have the feeling my > design decisions regarding this problem might be wrong. So, the problem: I > have a relational database with a notifications table where each > notification has many associated apps. Each app has itself many devices. > Now, a producer will check the table for new notifications with a specific > state. If there are any, grab them and produce a message for each device in > each app associated with the new notification. After that, some consumer > workers will work the queue(s) off and deliver the messages to the devices. > > Now, since the message payload will differ depending on the app type, my > idea was to dynamically generate queues for each app for a notification. > Having a notification with ID=42 and associated apps with IDS=110, 112, I > would generate the queues "42_110" and "42_112". Then, consumer workers > would be notified about the new queues and work them off. As the workers > need the notification and app data in addition to the message payload > itself, they could easily get it by splitting the queue name at "_" and > querying the database. > > Despite I think this could work, it just doesn't feel right. Is there any > opinionated way to go? How would you design it? Appreciating any help. :) > > _______________________________________________ > rabbitmq-discuss mailing list > [email protected] > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss > -- You received this message because you are subscribed to the Google Groups "rabbitmq-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/rabbitmq-discuss. For more options, visit https://groups.google.com/d/optout.
