A computer-implemented method, comprising: receiving, by a first secure computation node, SCN, of a plurality of secure computation nodes, SCNs, a first random number of a plurality of random numbers from a random number provider; encrypting, by the first SCN, data stored at the SCN using the first random number in order to generate first encrypted data; iteratively updating, by the first SCN, a secure logistic regression model, SLRM, by using the first encrypted data and second encrypted data based on an event-driven model being a publish-subscribe model, wherein the second encrypted data is received from a second SCN of the plurality of SCNs, wherein the second encrypted data is encrypted using a second random number of the plurality of random numbers from the random number provider, wherein a publisher sends a notification when its service is completed, wherein a subscriber monitors for the notification of the publisher, and wherein a service of the subscriber is triggered upon receipt of the notification of the publisher, wherein the iteratively updating the SLRM comprises determining a column vector of a prediction error as a difference between a sigmoid fitting function applied to a respective share and a label of a sample of a mini batch of a Stochastic Gradient Descent method, each of the plurality of shares hiding original data such that the original data cannot be recovered by using a single share of the plurality of shares; and after iteratively updating the SLRM, publishing a result of the SLRM, wherein the result is configured to enable the service to be performed by each SCN of the plurality of SCNs. receiving, by a first secure computation node, SCN, of a plurality of secure computation nodes, SCNs, a first random number of a plurality of random numbers from a random number provider; encrypting, by the first SCN, data stored at the SCN using the first random number in order to generate first encrypted data; iteratively updating, by the first SCN, a secure logistic regression model, SLRM, by using the first encrypted data and second encrypted data based on an event-driven model being a publish-subscribe model, wherein the second encrypted data is received from a second SCN of the plurality of SCNs, wherein the second encrypted data is encrypted using a second random number of the plurality of random numbers from the random number provider, wherein a publisher sends a notification when its service is completed, wherein a subscriber monitors for the notification of the publisher, and wherein a service of the subscriber is triggered upon receipt of the notification of the publisher, wherein the iteratively updating the SLRM comprises determining a column vector of a prediction error as a difference between a sigmoid fitting function applied to a respective share and a label of a sample of a mini batch of a Stochastic Gradient Descent method, each of the plurality of shares hiding original data such that the original data cannot be recovered by using a single share of the plurality of shares; and after iteratively updating the SLRM, publishing a result of the SLRM, wherein the result is configured to enable the service to be performed by each SCN of the plurality of SCNs. <EOS>