Patent ID: 9674273
Date: 2017-06-06
CPC Classifications: G06Q,H04L

Claim:
1. A method for providing a service composed of subtasks in a peer-to-peer network, comprising: forming a first group by assigning a plurality of first peer devices of the peer-to-peer network to the first group, the first group being defined by a predetermined first subtask, each first peer device assigned to the first group configured to execute the predetermined first subtask; forming a second group by assigning a plurality of second peer devices of the network to the second group, the second group being defined by a predetermined second subtask, each second peer device assigned to the second group configured to execute the predetermined second subtask; publishing in the peer-to-peer network, by a peer device requesting a composed service, information relating to the requested composed service that identifies a sequence of subtasks to be executed for providing the composed service, the subtasks within the sequence of subtasks comprising the first and second predetermined subtasks such that the first predetermined subtask is to be performed prior to the second predetermined subtask when performing the sequence of subtasks to provide the requested composed service; selecting, by the peer device requesting the composed service, a second peer device from the second group, the selected second peer device being selected for executing the second subtask of the sequence of subtasks to provide the composed service; selecting, by the selected second peer device, a first peer device from the first group for executing the first subtask of the sequence of subtasks to provide the composed service after the selected second peer device is selected by the peer device requesting the composed service; executing the first subtask of the sequence of subtasks by the first peer device to provide the composed service; and executing the second subtask of the sequence of subtasks by the selected second peer device after the selected first peer device executes the first subtask to provide the composed service.