Support the ongoing development of Laravel.io →
Database Architecture

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

Last updated 3 years ago.
0

you should do the second method, unless the results differ on each call. You can also try caching your response,

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.