R
R
Rudy Dudy2019-05-06 12:37:22
JavaScript
Rudy Dudy, 2019-05-06 12:37:22

Updating data on the client - will everything work stably?

Hello!
There is a website selling food, and there is also a separate delivery card for managers (to check new orders).
How it works now:

  • there is a cron that pulls data once a minute and writes it to a constant directly in the html file with the map
  • this variable is parsed on the front and markers are created from that data with coordinates, delivery location, time, etc.
  • there is filtering by the status of brokers, etc.

What is the task:
you need to write a script that will, say once a minute, execute a function that takes an array with new data that is updated by the cron once a minute, parses the new data and displays new markers so that the manager does not constantly update the map.
The issue is optimization. What will happen in an hour / two / three, etc. with the page? Won't everything freeze? How will this affect optimization? On average, this is + -30 markers.
Now 2 maps are ready (google map and open street map). Open street on native js, and google map using jQuery.
Does it make sense to write this map in Angular? Will it provide some kind of optimization?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question