messagebroker

Is it possible to combine REST and messaging for microservices?

送分小仙女□ 提交于 2020-08-02 12:25:19
问题 We have the first version of an application based on a microservice architecture. We used REST for external and internal communication. Now we want to switch to AP from CP (CAP theorem)* and use a message bus for communication between microservices. There is a lot of information about how to create an event bus based on Kafka, RabbitMQ, etc. But I can't find any best practices for a combination of REST and messaging. For example, you create a car service and you need to add different car

Is it possible to combine REST and messaging for microservices?

孤者浪人 提交于 2020-08-02 12:25:11
问题 We have the first version of an application based on a microservice architecture. We used REST for external and internal communication. Now we want to switch to AP from CP (CAP theorem)* and use a message bus for communication between microservices. There is a lot of information about how to create an event bus based on Kafka, RabbitMQ, etc. But I can't find any best practices for a combination of REST and messaging. For example, you create a car service and you need to add different car

Pact for MessageQueue's : Sample Provider test in case of MessageQueues

只愿长相守 提交于 2020-07-18 08:00:30
问题 I have written sample Pact test for MessageProvider by referring to sample example given in pact repo. Following is the consumer test which is generating the PACT json file for the message expected from Provider. In case of API, to verify the PACT, I was able to do this using "pact-jvm-provider-maven" plugin. In this case the PACT is verified against the actual hosted API service of Provider. My Question is, how in case of MessageQueue, PACT will be verified? Will a mock Queue gets created?

Does Google Pub/Sub queue or topic?

给你一囗甜甜゛ 提交于 2020-01-24 00:28:07
问题 I am familiar with JMS and novice with Google Pub/Sub. In JMS there are 2 options: Queue : only one consumer can accept message. Topic : each consumer accepts each message from the topic I believe that Google Pub/Sub should support something like this, but a quick Googling didn't help me to answer that question. Please point me out to the corresponding documentation part. 回答1: As the name "Pub/Sub" indicates, Google Pub/Sub supports publish/subscribes semantics which correspond to JMS topics.

Publish/Subscribe samples with RabbitMQ in .NET [closed]

眉间皱痕 提交于 2020-01-22 18:42:50
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I've built this sample: Getting Started With RabbitMQ in .net, but made 2 programs: one-publisher one-subscriber I'm using

What's the purpose of Kafka's key/value pair-based messaging?

不想你离开。 提交于 2020-01-22 04:40:25
问题 All of the examples of Kafka | producers show the ProducerRecord 's key/value pair as not only being the same type (all examples show <String,String> ), but the same value . For example: producer.send(new ProducerRecord<String, String>("someTopic", Integer.toString(i), Integer.toString(i))); But in the Kafka docs, I can't seem to find where the key/value concept (and its underlying purpose/utility) is explained. In traditional messaging (ActiveMQ, RabbitMQ, etc.) I've always fired a message

ActiveMQ embedded broker topic-to-queue bridge with XML config

隐身守侯 提交于 2020-01-05 07:49:06
问题 My Goal + Progress I'm interested in using ActiveMQ to publish a message to a topic and have it bridge to multiple queues. I have managed to achieve this with the command-line broker by providing an xml-config containing a composite topic: <destinationInterceptors> <virtualDestinationInterceptor> <virtualDestinations> <compositeTopic name="LOCAL.EC.T"> <forwardTo> <queue physicalName="LOCAL.EC.Q.1" /> <queue physicalName="LOCAL.EC.Q.2" /> </forwardTo> </compositeTopic> </virtualDestinations>

Getting error : WebSphere MQ reason code 2538?

随声附和 提交于 2020-01-02 04:01:23
问题 I have WebSphere MQ and WebSphere Message Broker installed on Linux and when I execute mqsicreateexecutiongroup I get an error saying: BIP1046E: Unable to connect with the queue manager (Could not connect to queue manager 'NSPZPAI1' (MQ reason code 2538)). When I search for this reason code I understand that it is a host not available error . Can somebody please tell me how to resolve this error? When I run a runmqlsr command I always end up in a hang. Can somebody tell me how to start a

Can producer find the additions and removals of brokers in Kafka 0.8?

六月ゝ 毕业季﹏ 提交于 2020-01-01 19:36:14
问题 We knowthat, in kafka 0.7, we can specify zk.connect for producer, so producer can find the additions and removals of broker. But in kafka 0.8, we can't specify zk.connect for producer. Can producer in kafka 0.8 find that? If not, the scalability of the system is not worse than the 0.7 version? 回答1: You can still use a ZooKeeper client to retrieve the broker list: ZkClient zkClient = new ZkClient("localhost:2108", 4000, 6000, new BytesPushThroughSerializer()); List<String> brokerList =

Difference between queue manager and message broker

十年热恋 提交于 2019-12-31 10:23:09
问题 What is the difference between a Websphere Message Broker and a Queue Manager. I guess the queue manager puts messages in the queue, takes messages out of the queue, moves messages to backout queues etc. So what is the job of the broker? Does it sit between the publisher and the Queue Manager or between the consumer and the Queue Manager? 回答1: Websphere MQ is a software which uses the AMQ(Asynchronous messaging protocol) . You can achieve asynchronous messaging between your applications via