Answer the question
In order to leave comments, you need to log in
What is the best language for a metasearch engine?
I want to try to do a metasearch, something like aviasales. I know php well, but for some reason, it seems that it is not very suitable for these purposes. Causes:
Answer the question
In order to leave comments, you need to log in
The language only allows you to implement the architecture. Even in languages that are more asynchronous, with poor architecture, you will get the same resource exhaustion while you are talking in terms of a single script. And taking into account the ignorance of the features of this new language, you can lose a lot of time on debugging.
Therefore, the output is in architecture. Asynchrony is implemented through queues, and load reduction through caching.
A certain balance can be maintained by using different languages through the queues in those places where they are needed.
Example:
1. API point where the results of parallel requests are collected - Node.js with promises that work with queues for communication with clauses 2 and 3, if necessary, rewrite in golang in the future if it slows down;
2. Points where high loads and a lot of logic are not needed - php, python, any language that you know well. If something becomes a bottleneck - rewrite compiled and optimize;
3. Where the load is high - something compiled like golang.
Accordingly, caching at the endpoint level allows you not to make new requests each time and reuse the results of the previous ones, and therefore the load will grow more smoothly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question