message-queue

Send message to arbitrary vhost / exchange with RabbitMQ / Spring AMQP

假如想象 提交于 2020-06-16 09:55:23
问题 I use RabbitMQ and Spring AMQP to send messages. I have this snippet: rabbitTemplate.convertAndSend(exchange, key, object); This works when I operate on a single VHOST . I have to receive messages from 1 queue and resend them to N exchanges (on many different VHOST s). How can I do it in Spring AMQP (ver 1.2) ? Is there anything better than manually defined <rabbit:connection-factory> (for each VHOST) and related elements in my xml context? 回答1: We added support for that in 1.3. See Routing

Send message to arbitrary vhost / exchange with RabbitMQ / Spring AMQP

我怕爱的太早我们不能终老 提交于 2020-06-16 09:49:06
问题 I use RabbitMQ and Spring AMQP to send messages. I have this snippet: rabbitTemplate.convertAndSend(exchange, key, object); This works when I operate on a single VHOST . I have to receive messages from 1 queue and resend them to N exchanges (on many different VHOST s). How can I do it in Spring AMQP (ver 1.2) ? Is there anything better than manually defined <rabbit:connection-factory> (for each VHOST) and related elements in my xml context? 回答1: We added support for that in 1.3. See Routing

AWS SQS to receive message from outside of AWS

随声附和 提交于 2020-06-16 05:10:03
问题 my company has a messaging system which sends real-time messages in JSON format, and it's not built on AWS, and will not have any VPN connection with AWS. our team is trying to use AWS SQS to receive these messages, which will then have DynamoDB process JSON messages to TSV, then load into RDS. however, as per the FAQ, SQS can only receive message from within AWS. https://aws.amazon.com/sqs/faqs/ Q: Who can perform operations on a message queue? Only an AWS account owner (or an AWS account

AWS SQS to receive message from outside of AWS

坚强是说给别人听的谎言 提交于 2020-06-16 05:09:46
问题 my company has a messaging system which sends real-time messages in JSON format, and it's not built on AWS, and will not have any VPN connection with AWS. our team is trying to use AWS SQS to receive these messages, which will then have DynamoDB process JSON messages to TSV, then load into RDS. however, as per the FAQ, SQS can only receive message from within AWS. https://aws.amazon.com/sqs/faqs/ Q: Who can perform operations on a message queue? Only an AWS account owner (or an AWS account

AWS SQS to receive message from outside of AWS

丶灬走出姿态 提交于 2020-06-16 05:09:04
问题 my company has a messaging system which sends real-time messages in JSON format, and it's not built on AWS, and will not have any VPN connection with AWS. our team is trying to use AWS SQS to receive these messages, which will then have DynamoDB process JSON messages to TSV, then load into RDS. however, as per the FAQ, SQS can only receive message from within AWS. https://aws.amazon.com/sqs/faqs/ Q: Who can perform operations on a message queue? Only an AWS account owner (or an AWS account

How to implement the “locked” feature in AWS/SQS when using Google Cloud Pub/Sub?

99封情书 提交于 2020-06-13 06:13:09
问题 When you want to implement a producer/consumer pattern on top of Google Cloud Pub/Sub, you would expect each message can only be processed by one consumer. But Google Cloud Pub/Sub would send each message to all the subscribers. But the AWS/SQS has the following feature to easy guarantee this: When a message is received, it becomes “locked” while being processed. This keeps other computers from processing the message simultaneously. If the message processing fails, the lock will expire and

Timeout behaviour when AWS Lambda with limited concurrency is consuming from an AWS SQS queue

谁说胖子不能爱 提交于 2020-04-17 21:46:15
问题 I have a AWS Lambda with limited concurrency set that is consuming messages from a AWS SQS of type FIFO, and I just learned that the "messages in flight"-property of the queue does not reflect the number of concurrent lambdas processing the messages. However, do I need to worry that the Default Visibility Timeout of the queue will time out before a lambda or in the middle of a lambda just having received a message? Or rather is the Default Visibility Timeout counted from when the message was

Timeout behaviour when AWS Lambda with limited concurrency is consuming from an AWS SQS queue

独自空忆成欢 提交于 2020-04-17 21:45:19
问题 I have a AWS Lambda with limited concurrency set that is consuming messages from a AWS SQS of type FIFO, and I just learned that the "messages in flight"-property of the queue does not reflect the number of concurrent lambdas processing the messages. However, do I need to worry that the Default Visibility Timeout of the queue will time out before a lambda or in the middle of a lambda just having received a message? Or rather is the Default Visibility Timeout counted from when the message was

Message Queue vs Message Bus — what are the differences?

为君一笑 提交于 2020-03-17 03:42:12
问题 And are there any? To me, MB knows both subscribers and publishers and acts as a mediator, notifying subscribers on new messages (effectively a "push" model). MQ, on the other hand, is more of a "pull" model, where consumers pull messages off a queue. Am I completely off track here? 回答1: By and large, when it comes to vendor software products, they are used interchangeably, and do not have the strong distinctions in terms of push or pull as you describe. The BUS vs. QUEUE is indeed somewhat a

Run multiple Celery tasks using a topic exchange

ⅰ亾dé卋堺 提交于 2020-01-29 09:44:28
问题 I'm replacing some homegrown code with Celery, but having a hard time replicating the current behaviour. My desired behaviour is as follows: When creating a new user, a message should be published to the tasks exchange with the user.created routing key. Two Celery tasks should be trigged by this message, namely send_user_activate_email and check_spam . I tried implementing this by defining a user_created task with a ignore_result=True argument, plus a task for send_user_activate_email and