H
H
HoHsi2015-08-24 12:55:15
ruby
HoHsi, 2015-08-24 12:55:15

Ruby, Python or NodeJS for a service?

For the last month, the question has been tormenting on what is the best way to write a service: Ruby, Python or NodeJS. The essence of the service is to issue dynamics (standard http server), and in free time (at night) to analyze the received statistics and data. Simply put, when there is no one, the demon starts moving data in the background, and as soon as activity appeared, it slowed down and gave a couple of cores back. And from this follows the question: what language will allow this? (I understand that they are all. Which one is more preferable.).
I choose a language for more than one project and I would like to choose one that would allow me to write not only blogs and landing pages (but also them too), but also serious services with a large amount of data.
At the moment I operate:
JS - 2 years
PHP - 2 years
PERL - 0.5 years.
C++ - 1 year
I’ve been playing around with node for the second week already, everything is cool (After PHP, it’s a fairy tale in general), but there is a feeling that something is missing.
PS due to age and little work experience, I can be stupid in understanding the distribution of the system.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
K
Konstantin Kitmanov, 2015-08-24
@k12th

It makes no sense to do it with one service. These are different tasks, write two separate applications, they don't even need to communicate with each other, just read and write to the same database. The analytics service can generally be placed on a separate server and even from another host.

E
Elizaveta Borisova, 2015-08-24
@Elizaveta

The task of redistributing resources is parallel to the web muzzle. You can use different tools for different tasks. Python is good for data.

O
OnYourLips, 2015-08-24
@OnYourLips

Node.JS is not suitable due to its asynchronous nature.
Therefore, taking into account your experience, I recommend PHP, and look towards queues.
I do not recommend Ruby or Python just because of the lack of experience.

T
tex0, 2015-08-24
@tex0

I've been playing with Noda for the second week, everything is cool

To use this tool, you need to have a good understanding of how it works, as well as be able to analyze its suitability for implementing the requirements of your future product.
IMHO - if it is assumed that the basic mode of operation of the service operates with small data sizes per "session", then the node as a whole will do. For complex calculations (night mode - analysis of the received data bank, etc.) - PCP, CPU or something with support a multi- threaded model for analytics (because the Node eventloop, without "cunning preparations" does not make sense in this case) .

S
Serge K, 2015-08-24
@korotkin

Get started with Django. When you start to understand python, move on to something else.
Django-Rest-Framework / Django-Pie in the afternoon
Django + celery by night

P
Pavel Ivanov, 2015-08-24
@eastywest

Try Go

S
sergekosykh, 2015-08-26
@sergekosykh

I support about Golang.
C-shaped syntax, static typing, multithreading (lightweight threads), asynchrony, a very fast garbage collector, a rich standard library, a large number of third-party packages on a variety of topics, and many other goodies, including the presence of far from the only full-fledged free IDE ( if anyone is using).
Suitable for both web and analytics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question