In the previous article, I have already written about the PTP (point-to-point) mode of the JMS message mechanism. Today I will write about my personal publishing-subscription mode of the JMS message mechanism.
Before reading the text, I would like to explain the features and differences between PTP and publishing-subscription.
Features:
Point-to-Point message model: this model is implemented through a Server Message Queue. The message sender writes messages to the queue, and the message receiver
one consumer per message (Consumer) (that is, once consumed, the message is no longer in the message queue)
There is no dependency on time between the sender and the receiver, that is, when the sender sends the message, regardless of whether the recipient is running, it does not affect the message being sent to the queue
The recipient needs to answer the queue successfully after receiving the message successfully
If you want to send every message will be successfully processed, the
Context.lookup () mode and begins the call, the implementation of JBoss Jndi is to get the object instance from JNP server, serialize it back to local, It is then deserialized locally, and then the class is called locally.
Through this mechanism, we can know that the local actually must have bound to the JBoss object instance class, otherwise the deserialization will certainly fail, and the remote communication needs to do is to perform a remote operation, and obtain the corresponding resul
), receiver (receiver). Each message is sent to a specific queue, and the recipient obtains the message from the queue. The queue retains messages until they are consumed or timed out.The characteristics of peer-to
Only one consumer per message (Consumer) (that is, once consumed, the message is no longer in the message queue)
There is no dependency on time between the sender and the receiver, that is, when the sender sends the message, regardless of whether the recipient is running,
ModeContains three role topics (Topic), publisher (publisher), Subscriber (subscriber). Multiple publishers send messages to topic, which the system passes to multiple subscribers.Features of Pub/sub
Each message can have multiple consumers
There is a time dependency between the Publisher and the Subscriber. Subscribers to a topic (TOPIC) must creat
card, which lays the foundation for the future development of personal communication. The 2. Base station subsystem (BSS) Base station subsystem is connected to the Mobile Service Switching Center (MSC) in the Network Path System (NSS) to achieve communication connections between mobile users or between mobile users and fixed network users, and to transmit system signals and user information. Of course, the BSS section should be operated and maintained, and the communication connection betwee
official website document of the words, but according to my actual use. The use of Realm.getdefaultinstance () asobservable () will never be dropped using the OnComplete () method, which is a pit, quite deep, and, in the course of use, Call OnNext () multiple times, causing multiple calls in Subscriber.onnext (), which means the interface will be refreshed multiple timesIf you want to take a data, you need to use Filter/first ()
Query code
final Realm Realm = Realm.getdefaultinstance (); obser
the backbone of the broadband technology is not too much involved.
The Broadband access network provides the usually-said last-kilometer connection-the connection between the user and the backbone network.
In the access network, the current international mainstream and more mature technology, including xDSL technology, HOMEPNA technology, optical fiber access technology, cable technology and wireless Broadband access network technology. These technologies are based on a different hardware env
Demand:
In order to accurately monitor the internal state of each server, without affecting the existing business logic, a simple centralized monitoring system for the server needs to be deployed quickly. After consideration, you can use the Redis pub/sub function to implement a monitoring system is very good and appropriate.
Of course, we can also pass this to do batch management.
Pub/sub is literally the publication (Publish) and Subscription (Subscribe), in Redis, you can set a key value f
procedure required by the system exists (if it does not exist, it needs to be restored):Sp_addextendedproc ' xp_regenumvalues ', @dllname = ' Xpstar.dll 'GoSp_addextendedproc ' Xp_regdeletevalue ', @dllname = ' Xpstar.dll 'GoSp_addextendedproc ' Xp_regdeletekey ', @dllname = ' Xpstar.dll 'GoSp_addextendedproc xp_cmdshell, @dllname = ' Xplog70.dll 'Next, you can use SQL Server Enterprise Manager [Copy]-> right-click to select->[Configure the publishing, subs
SQL Server High Availability database replication: Modifies table structure, new tables, new stored procedures are replicated to subscribers?After you have configured database replication on SQL Server:1. If you add a field to the table, will it be copied to the subscriber? What if 1 fields are deleted?2, if the newly created 1 tables, will not be synchronized past it?3. If a new stored procedure is created, will the past be synchronized?This article
on the design of the event member.
This chapter resolves the design of event providers and Subscriber types by designing a scenario that triggers events when an e-mail arrives. The case comes from the "CLR Via C #" book.
design of event provider types
I. Define types to accommodate all additional information that needs to be sent to event subscribers
Goal: Define a type to pass information to the subscribe
receiver gets the message from the queue. Queues keep messages until they are consumed or timed out.
Peer-to-peer features each message has only one consumer (Consumer) (i.e. once consumed, messages are no longer in Message Queuing there is no time dependency between the sender and the receiver, meaning that when the sender sends a message, no matter whether the receiver is running or not, it does not affect the message being sent to the queue Recipient must reply to queue successfully after re
The last time the Observer model was studied, many articles said it was also called subscribe/publish (Publish/Subscribe mode). There are some differences between the two patterns in the JavaScript design pattern book. The book reads as follows:
1.Observer mode requires that an observer who wishes to receive a topic notification must subscribe to an event that changes the content.
The 2.subscribe/publish mode uses a theme/event channel between subscribers and publishers. The event system allow
Guava provides us with the event Bus Eventbus Library, which is the implementation of the event publish-subscribe pattern, which allows us to decouple the design of our modules and domain boundaries in domain-driven design (DDD) with the weak reference nature of events. Events
Guava the event passed in the publish-subscribe mode is an ordinary Pojo class.
Class Orderevent {
private String message;
Public orderevent (String message) {
this.message = message;
}
Pub
-04,01:20
The La.onger of the 5 floor is actually saying well, Disney's way of making money is long before Steve Jobs arrives, and the difference is that now Disney is more focused, removing some unimportant lines of business, reinforcing the pattern of the past. (10/F): Huang @ 2009-05-04,02:57
What's the number of the 27 million DVDs, please? I suspect this number because I have seen the most recent DVD release (Pirates of the Caribbean, Batman, etc.), less than half of this number. Ratatouill
color between the two is less than the system's own interface, the purity difference of 3%, the brightness difference of 2%, they are the same spacing and itunes exactly the same. Each row is more structured and has more than one column.
Figure 13: Zebra color for Ipad app light interface
ipad on the itunes player interface, in addition to the depth and color of the segmentation, but also increased the use of the split line, the gap between the two colors so the moderate, the purity differenc
The recipient needs to answer the queue successfully after receiving the message successfully
If you want to send every message will be successfully processed, then you need to peer mode. (Architecture kkq:466097527, welcome to join)4.1.2 Pub/sub ModeContains three role topics (Topic), publisher (publisher), Subscriber (subscriber). Multiple publishers send messages to topic, which the system pass
(I--{System.out .println (i) try {thread.sleep (100 ) } catch (Exception e) {}}, System.out ::p rintln) Results:82182283...Throttle and debounce can also achieve similar results.CollectIf you don't want to discard data, you can use the Buffer and window action functions to collect data when the consumer is busy. You can use this method if you are processing data in batches faster.observable.interval ( 10 , Timeunit) .observeon (schedulers .newthread ()) .buffer (100 , Timeunit) .subs
distributor instance. The first parameter controls whether the Event is passed between all the trigger actions under the Event name. For example, in linstener_2. propagationStopped is set to true. After linstener_2 is executed, the event will stop spreading and the action after linstener_2 will not be triggered.
In addition, the Event instance can save other necessary information so that the linstener can obtain additional information when it triggers execution.
Event
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.