How to retrieve device location every time and send it to database

I'm working on a system that requires retrieving the user's location every time and storing it in a database. But I have 5000 users and if I send for example the location every 5 seconds to my database, that's 5000 API calls every 5 seconds, too many...

So i'm looking for a solution, thanks guys

1
7 replies