ethanjweiner / visualize-the-web

A geographic visualizer of HTTP requests across long distances, built with Python and Flask
2 stars 1 forks source link

Reconfigure Databases #81

Closed ethanjweiner closed 3 years ago

ethanjweiner commented 3 years ago

Task Title

Task: Reconfigure Databases

Task Description

This Task will...

Epic Parent

Feature: Awesome Feature Title

ethanjweiner commented 3 years ago

Solution: Randomly select the routers, retrieve the router ids, and store in a session variable. Then query those routers whenever access is needed. If the querying is slow, just query once and condense the route requests into a singular request with a loop (so that the routers must only be queried once).

ethanjweiner commented 3 years ago

Better solution: Recreate the routers database such that the routers are randomly ordered. Then, to "randomly select" the routers for a given session, all that is needed to do is to generate a singular router id, and the rest can be derived from that router id (by simple addition). This solves the problem of needing to store multiple router ids in one session variable.