Hey guys,
I have a development workflow question. I'm looking to load a lot of content from an API, in particular one that loads in a bunch of concerts.
I know exactly how to retrieve the data, so there's no issue with that. However, I don't really know if I should let the user do the call at runtime (fe. when he goes to a route /concerts) or if I should create a command that I can run every night at 23.59 that can fill up a table in a database with the content of the API call ?
My gut feeling says the second option is the correct one, however I'd still like some second-opinions.
Thanks in advance!
Thomas
you should do the second method, unless the results differ on each call. You can also try caching your response,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community