F
F
freestm2017-08-16 16:58:52
JavaScript
freestm, 2017-08-16 16:58:52

In what cases is it not justified to use a framework (for example, express.js) for nodejs?

Is anyone writing a webserver in bare nodejs or is it crazy and always have to use a framework?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Philipp, 2017-08-16
@zoonman

Not justified in the following cases:

  • You have just started learning Node.JS and are practically zero in it. In this case, it is better to immediately deal with the basics and only then take up the study of frameworks.
  • When you need to do something very simple and very fast. For example, you have 2-3 functions that simply work with the base. For example, the counter of visits on the site.
  • When the framework does not fit into the architecture of your application. For example, you have web sockets everywhere and they are also trying to stick a framework to them on the side.
  • When an application is written for streaming data, for example some kind of multiplexer. Here the usual frameworks smoke on the sidelines.

N
Negwereth, 2017-08-16
@Negwereth

What do you need this server for? To give a statics and normal http-server can.
Yes, and statics can be written by hand. For the REST API, the same restify works 100%.

I
Ilya Rumyantsev, 2017-08-16
@explosivebit

I always write in koa2 if you need a quick and high-quality start. It makes no sense to write in pure js if it's alpha or try what happens.

D
Dmitry Belyaev, 2017-08-17
@bingo347

When your highload express/koa results in costs like "we need +5 more cars", but iron is cheap now, write to express, and it's easier for you and I will continue to earn 200-300 thousand

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question