publish-subscribe

ZMQ Pub-Sub Program Failure When Losing Network Connectivity

安稳与你 提交于 2019-12-23 09:05:33
问题 I have a simple pub-sub setup on a mid-sized network, using ZMQ 2.1. Although some subscribers are using C# bindings, others are using Python bindings, and the issue I'm having is the same for either. If I pull the network cable from a machine running a subscriber, I get an un-catchable error that immediately terminates that subscriber. Here's a very simple example of a subscriber in Python (not actual production code, but enough to reproduce the problem): import zmq def main(server_address,

Fire Event on Background Thread [closed]

半世苍凉 提交于 2019-12-23 06:42:10
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . My apologies I was not accurate in my question and effort. I am developing Console application which has different components. Now I have decoupled them and want them to interact them using asynchronous Publisher

How to integrate Saxon with Kafka

泪湿孤枕 提交于 2019-12-23 05:40:54
问题 I would like to use Kafka as the kernel of my message-oriented middleware. It means that, in addition to the transport of messages provided by Kafka, I would need payload transformation/enrichment between the payload sent by the producer and the payload received by the consumer. Indeed, in a lot of use cases, the format used by the producers will not be the most appropriate format for the consumers. An obvious example would be having mainframe application producing COBOL copybooks as producer

How to run method on client when subscribe is complete

浪尽此生 提交于 2019-12-23 04:52:40
问题 Here is my setup: //in global.js file items = new Meteor.Collection("items"); //on server in main.coffee Meteor.publish "nearItems", (lat, lng) -> return items.find( { loc : { $near : [lng, lat] } }) //on client in map.coffee Meteor.autosubscribe -> Meteor.subscribe( "nearItems", 37.78, -122.416, addMarkers) addMarkers = -> places = items.find().fetch() console.log "Adding this many markers:", items.length for item, i in places theLatLng = new google.maps.LatLng(item.loc[1], item.loc[0])

How to deal with 'read ETIMEDOUT' in Node.js?

人走茶凉 提交于 2019-12-23 01:10:29
问题 I have a pub/sub model using Node.js to transmit data from one client to another client. Besides, server also records everything received and send to new clients. However, some data corrupted when transfer, and I got error like: Error with socket! { [Error: write EPIPE] code: 'EPIPE', errno: 'EPIPE', syscall: 'write' } Error with socket! { [Error: read ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'read' } I don't know how to properly handle these errors. It looks like client is

How does a JMS Topic Subscriber in a clustered application server recieve messages?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 22:49:43
问题 Suppose I created a JMS Topic (PropertiesTopic) with one subscriber (PropertiesSubscriber). PropertiesSubscriber is running in a load balanced application server cluster as shown in the picture below. alt text http://www.freeimagehosting.net/uploads/be28c03781.png When a message is delivered to PropertiesTopic, do all the instances of PropertiesSubscriber running on different app servers get that message or does the message get delivered to only one PropertiesSubscriber instance running on an

Does SignalR support the Publish/Subscribe messaging paradigm?

限于喜欢 提交于 2019-12-22 10:50:04
问题 I want to use pub-sub messaging between multiple servers in a web farm to maintain their local (ASP.NET) caches in sync. Could this be easily done with SignalR? If it is possible, how can I do so? 来源: https://stackoverflow.com/questions/9449601/does-signalr-support-the-publish-subscribe-messaging-paradigm

MassTransit MSMQ Pub with multi-sub. When is RuntimeServices ready?

醉酒当歌 提交于 2019-12-22 10:45:41
问题 I've set up a simple test comprising a publisher with two subscribers, all running on a single machine using MSMQ and MassTransit (2.1.1) RuntimeServices which is using a local Sql Server database. I've included the Bus set up code below so you can see what's set up. I'm starting each component manually and independently to try to workout what happens if a subscriber ins't running. I ran the two subscribers first so the queues and subscriptions are all set up and then quit them both, without

pubnub and head.js

冷暖自知 提交于 2019-12-22 10:33:36
问题 Has anyone managed to integrate pubnub and head.js properly? Pubnub expect me to put their script at the bottom of the page with a <div> tag just before it. This ensures that the ` tag is completely loaded by the time the javascript is called last. The thing is, the rest of my application and pubnub are loaded through head.js so it keeps happening that the JS files are loaded before the pubnub subscribe/publish key and its subscribing/publishing to 'demo' rather than my own area of pubnub...

SubmissionPublisher on submit not invoking onNext of subscriber

馋奶兔 提交于 2019-12-22 08:34:10
问题 Every interval I retrieve tweets with a certain query. These tweets have to be passed to services which calculate and manipulate those tweets. So these services are subscribed to my publisher. So publisher.hasSubscribers() returns true. But the submit or offer function does not invoke the onNext of my subscriber. So as a "fix", I cycle through my subscribers and invoke it myself. But that shouldn't be the case. This is the constructor of my publisher. public TwitterStreamer(Executor executor,