Send geolocation to webservice and upgrade to other devices

3

Well I did not get a good title for the question.

But I have the following problem, I'm trying to make an app like Easy Taxi, I'll pick up the customer's location and send it to the franchisees.

The question is, should I keep updating the database every minute for example the location of the franchisee? Would there be another way to do it without saving it in a bank?

    
asked by anonymous 14.11.2014 / 16:22

2 answers

1

Saving the data in the database will be an option if you want to use it for further analysis. But you may well share this data to the client without having to do some data persistence work, for example:

  • Store the current position of the franchisee in a list that contains all the current requests and according to the scheduled frequency that position of the franchisee is updated in the list. This same list will be used to capture the current position of the franchisee and send it to the customer.

On sending the client's geolocation to the franchisees, after being available on the server for distribution among the franchisees, you can use some shipping patterns such as:

04.02.2015 / 22:00
0

I think it's a matter of architecture. You could use an integration pattern called publish / subscribe .

Using a messaging system, for example JMS, you could use a topic.

The client system "publishes" the location in the created topic. This information is received by all "subscribed systems" in this topic.

    
06.12.2014 / 03:31