Hi all,
Do we have any approach to call api at regular intervals without using node.
Hi Reshma,
You can do it using cron job in linux. Create a script file and place a curl command in that file. Configure a schedule to call api at regular intervals.
Thanks Muhammad.
But can you provide example how to do it
Step 4: Create Cronjob
sudo crontab -e
Step 5: Add scheduler time and executable file path. Note with below configuration it will run after every 5 seconds. However you can change scheduler time.
*/5 * * * * /usr/bin/script.sh
Step 6: Save it with :wq command. It will create a new job which will execute after every 5 second and run script.sh executable file and we know that it contains curl command which will send call to API.
Thanks,
Can we implement that in apigee?
Well, I might be one of the options if you don't want to use node. You can run this script on the server where apigee installed but it totally depends on the environment and nature of scripts. I am using this technique to take database backups or backend server for every minute just to verify whether it is up or not.
Is there any approach other than this.