简体   繁体   中英

Large quantities of API requests on a Laravel RESTful service

So I have an app that does API call every minute or so to update local db on the app.

I don't know about scalability in this scenario, but let's say I have 100 users, so that makes it 100 api calls a minute or so.

How bad is this?

Is there a way to mock hundreds of api calls?

The scenario you explained above won't be bad at all, even when performed in a small server, assuming the call you are making is relatively short and does not use lots of memory in the server. This could be more efficient if you spin up more workers threads in your server.

Laravel's documentation explains a little more.

Alternatively, you could use a well-known Java framework called JMeter to test your API calls in any scenarios you may want.

For more visit their documentation .

I hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM