A
A
Artyom Zubkov2012-02-20 06:23:15
PHP
Artyom Zubkov, 2012-02-20 06:23:15

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

3 answer(s)
N
Nikolai Vasilchuk, 2012-02-20
@Anonym

Select on the server and cache.

A
avalak, 2012-02-20
@avalak

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.

A
Anatoly, 2012-02-20
@taliban

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 question

Ask a Question

731 491 924 answers to any question