messaging

App Engine Messaging System with Message Status - Design Pattern

泪湿孤枕 提交于 2019-12-21 22:32:49
问题 I'm building a Threaded Messaging System that will be hosted on Google AppEngine I've modeled it after the technique described by Brett Slatkin in Building Scalable, Complex Apps on App Engine class Message(db.Model): sender = db.StringProperty() body = db.TextProperty() class MessageIndex(db.Model): receivers = db.StringListProperty() The issue I'm having to determining the most efficient way to track the message state for a User. For example is a message read , archived , deleted for a

Are there any Python 2.7 alternatives to ZeroMQ that are released under the BSD or MIT license?

半世苍凉 提交于 2019-12-21 17:33:30
问题 I am seeking Python 2.7 alternatives to ZeroMQ that are released under the BSD or MIT license. I am looking for something that supports request-reply and pub-sub messaging patterns. I can serialize the data myself if necessary. I found Twisted from Twisted Matrix Labs but it appears to require a blocking event loop, i.e. reactor.run(). I need a library that will run in the background and let my application check messages upon certain events. Are there any other alternatives? 回答1: Give nanomsg

NServiceBus Publish() vs. Send() in website context

你。 提交于 2019-12-20 18:33:44
问题 I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus (NServiceBus Documentation, scroll about two thirds of the way down). Doesn't it make semantic sense to Publish() events, and to Send() commands? If so, I think it makes sense that a web application can both Publish() and Send() :-) Also, given that using Publish() doesn't require the web application to know about the recipients of the messages (Send() requires the

Push Notification vs. Web Sockets for implementing a real-time chat app?

余生长醉 提交于 2019-12-20 11:09:39
问题 I'm looking into building a real-time chat app for iPhone (but this question applies to Android and other devices as well) Basically I want the app to receive realtime messages while it's open as well as while it's closed, just like the iPhone's own "Message" app. When it's closed I can use the native push notification services like APNS, and when the app is open, I can run my own websockets server or use 3rd party providers like PubNub or Pusher, which is what I've been doing actually. Then

Rails threaded private messaging

牧云@^-^@ 提交于 2019-12-20 09:38:25
问题 I have the following two models: class Message < ActiveRecord::Base belongs_to :to_user, :class_name => 'User' belongs_to :from_user, :class_name => 'User' has_ancestry #Using the 'ancestry' gem end class User < ActiveRecord::Base has_many :messages_received, :class_name => 'Message', :foreign_key => 'to_user_id' has_many :messages_sent, :class_name => 'Message', :foreign_key => 'from_user_id' end Each user is allowed to have one conversation with another user and all the replies should be

Messaging System with PHP/MySQL

痴心易碎 提交于 2019-12-20 03:16:25
问题 Hi I'm trying to make a messaging system with php and mysql. The mysql table is simple: id sender receiver text timestamp I'm trying to make the messaging somewhat like Facebook/Twitter so the list is in 'conversations' and the last message in the conversation is viewed. This is what I have atm: (SELECT * FROM messages WHERE receiver = 13 OR sender = 13 GROUP BY receiver,sender ORDER BY id ASC) ORDER BY id ASC 回答1: SELECT messages.* FROM messages, (SELECT MAX(id) as lastid FROM messages WHERE

How to register message handler prior to ShowDialog() blocking call?

房东的猫 提交于 2019-12-19 22:01:55
问题 I'm using a Messenger class in order to send data between view models. There is an AppView that hosts two main views in a content control, and up until now have had no issue with sending/receiving data this way. Issue: Now I added a ProductView that shows a separate dialog to the AppView. But when I call Messenger.Default.Send<ProductModel>(SelectedProduct); after calling .ShowDetailDialog() this blocks the Send code call, until the dialog is closed. I tried the other way around, calling the

NServiceBus: specifying message order

↘锁芯ラ 提交于 2019-12-19 08:39:45
问题 I'm using NServiceBus in it's own process (so not using the Generic Host) and I would like to have multiple message handlers for a message in a specific order. For the Generic Host, you would implement ISpecifyMessageHandlerOrdering , but I don't know how to do this when hosting your own NServiceBus process since that interface is defined in NServiceBus.Host.exe and I haven't been able to find another way to do this. The purpose of this is user authentication: before the actual message

RabbitMQ channel creation guidelines

百般思念 提交于 2019-12-19 05:32:50
问题 I'm writing a simple class that my apps will use to send and receive messages using RabbitMQ. I've read as many How-Tos, blog posts, white papers and the likes about RabbitMQ as I could find. most of the examples show to use the connection and channel wrapped in a using block, and contradict it by saying that you should probably implement them as a singleton. Specifically regarding the channel, I've seen comments saying that you shouldn't have more than a single thread using a single channel

How to send Jms message from one spring-boot application to another when both apps use embedded activemq

余生长醉 提交于 2019-12-19 03:45:35
问题 I have two spring-boot applications. in receiver-application's Application.java I have: @Bean public JmsListenerContainerFactory<?> myFactory(ConnectionFactory connectionFactory, DefaultJmsListenerContainerFactoryConfigurer configurer) { DefaultJmsListenerContainerFactory factory = new DefaultJmsListenerContainerFactory(); configurer.configure(factory, connectionFactory); return factory; } and in Receiver.java ... @JmsListener(destination = "myQueue", containerFactory = "myFactory") public