You should use a job queue for that
Continuous API query - How to implement?
The API is very special and I will try to explain it with a simple example.
Each user can enter several personal tokens into the database. For each of these tokens, I would like to call an API every 15 minutes (later perhaps more often) and store the response in a database.
The API is a Rest API that I could query with e.g. Guzzle.
Since I haven't been working with Laravel for very long, I don't know how I can best implement this. It would be good if I could move this to a second server later on to reduce the load on the actual homepage.
I have tried to read up on the documentation of queues, jobs, broadcasting and task scheduling, but I am still unsure what I could implement this with.
Please or to participate in this conversation.