Android Question [SOLVED] Best way do update a server every minute.

jroriz

Active Member
Licensed User
Longtime User
I have a server running PHP.
I need to build an application for mobotoy (B4A), which updates the driver's position every minute. This position will be consulted through a php/javascript page that also updates every minute to show the driver's position on the map.

What's the best way?
I think about making a post through the app every minute sending the driver's position.
I will have around 20 drivers active at the same time.
What bottlenecks should I think about?
Would a very powerful server be needed for this application?
 

Xandoca

Active Member
Licensed User
Longtime User
Hi @jroriz,

I think 20 updates at the same time is very low concurrency considering a small transaction (location).
Take a look at this thread.

Regards
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
Create Rest API in PHP and call them with HTTP.

use:

Note:
I have a mobile location monitoring platform on the PHP server (Rest Full API) and B4X App on the phones of product dispatchers (600 mobile phones), which send their position every 30 seconds.
all in one web hosting with PHP and MARIADB
works very well
 
Last edited:
Upvote 0
Top