Answer the question
In order to leave comments, you need to log in
recursive algorithm. On which side is it better to implement it?
Task:
Select data recursively from an external resource and present it in a more convenient form for work.
Question:
How to proceed? Is the server configured to do this, while the number of requests to the resource can be up to 4000 (respectively, a long time) or is it implemented on the client side using js libraries?
Answer the question
In order to leave comments, you need to log in
I am for server implementation. Only the "recursive algorithm" confuses me. Better in line.
- frontend (communicates with the client, if necessary, informs about the progress of work via SSE / WS)
- queue (for tasks, exchange of goals)
- backend (parallelize work)
- storage (storage of results + report)
and caching, of course.
If there is not much data, then it is easier and more convenient to do everything on the client (build the menu in the form of a tree, show small data). But if the data for recursion is large, then it will really be easier to work on it once and cache the result.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question