A distributed system is considered in an eventdriven model where a state of a process transits on occurrence of an event. In this paper, we discuss a peer-to-peer topic-based publish/subscribe (P2PPS) model where each peer process (peer) can both subscribe and publish event messages. The subscriptions and publications are specified in terms of topics. Each event message e carries a vector e.T V = tv1, . . ., tv h of topics t1, . . ., t h in a system. An event message e1 causally precedes an event message e2 with respect to a topic subset T iff not only e1 causally precedes e2 but also e1.tvj ≤ e2.tvj for every topic tj in an intersection T of the publications of e1 and e2 and the subscription Si of pi. A pair of event messages e1 and e2 are unnecessarily ordered if e1.T V ≤ e2.T V but e1 does not causally precede e2. In this paper, we newly propose a topic-based-causally delivering (TBC) protocol where the linear clock and physical clock are used with topic vectors to reduce the number of pairs of messages unnecessarily ordered. We evaluate the TBC protocol and show the number of pairs of unnecessarily ordered messages is reduced.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.