Methods are provided for event notification in a decentralized
peer-to-peer (P2P) network. Each node within the P2P network can publish
a subscription object for a published resource. Through the use of common
identifiers, each subscription object is co-located with a corresponding
publish object for the resource. Upon receiving notification of an event
associated with the resource, the node responsible for the publish object
for the resource distributes the event notification to each node present
on the corresponding subscription registry. Therefore, nodes within the
P2P network that are interested in a resource are capable of establishing
a persistent query for the resource by publishing a subscription object
for the resource on the responsible node.