php - Integration between Webservices and Website -


i have web services running on central server(debian) on apache. have multiple remote machines call these webservices. 1 of webservice status/healthcheck webservice - each remote machine has cronjob calls status webservice every minute. point of status webservice send requests machines response status webservice.

i have website running on same central server. want have communication between status webservice & website.

i.e. can click on option on website & ask send request 'x' remote machine 'y'. if webservice running process, website communicate webservice & webservice send next time gets status call machine.

however, since webservice not process - confused how can achieve - have suggestions.

everything running on apache/php.

you can have db table these fields: id, request, remote_machine, processed , save request website here immediately.

later when each time remote machines call health check web service, can query table request matching remote machine , processed = 0. can send request response health check web service.

hope helps.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -