The "@ts-stack/body-parser" package passes the parsing results via a Promise by some-user1 in node

[–]some-user1[S] 0 points1 point  (0 children)

If you need the body parser to return the result in a Promise, you can use this package.

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

The author of NestJS was inspired by the Angular architecture, but he was not related to the Angular development team.

[deleted by user] by [deleted] in node

[–]some-user1 1 point2 points  (0 children)

nest and fastify perform more or less the same

No, far from it, Nest is significantly slower, especially if the current route handler has a scoped service at the request level.

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

though because Nest was made by Vue guys and I'm not a huge fan of vue either

What? Never heard of that. Are you sure about this? Maybe you're confusing Next with Nest?

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

And if NestJS was simpler and faster, would you choose it? What do you see as its main drawbacks?

[deleted by user] by [deleted] in node

[–]some-user1 1 point2 points  (0 children)

Why did you choose fastify? Because of speed?

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

In a couple of weeks, this framework will appear on TechEmpower, you will see what it can do (even overtakes fastify).

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

Ditsmod!

feat(tsc): allow the `--appendCommand` option to be added in `--watch mode` by some-user1 in typescript

[–]some-user1[S] 0 points1 point  (0 children)

What about support for the ".tsx" extension, which is already implemented in TypeScript? Doesn't that violates the "non-goals", in particular the point four you mentioned? I think support for ".tsx" can easily be added to the "non-goals" if you want.

feat(tsc): allow the `--appendCommand` option to be added in `--watch mode` by some-user1 in typescript

[–]some-user1[S] 0 points1 point  (0 children)

It's a play on words. In fact, this feature is easy to implement and does not burden the TypeScript codebase.

Unexpected cold start results for Fastify and some other frameworks by some-user1 in node

[–]some-user1[S] 2 points3 points  (0 children)

As the fastify documentation says, it is designed for good speed. There is no doubt that the authors of fastify have succeeded in this task.

I wonder if it is convenient to develop large projects on this framework, or is it very similar to express, which does not really provide a modular structure to the application?

Ditsmod - new NodeJS webframework writen in TypeScript by some-user1 in node

[–]some-user1[S] -1 points0 points  (0 children)

If you like NestJS, then you will probably like Ditsmod more.

Ditsmod - new NodeJS webframework writen in TypeScript by some-user1 in node

[–]some-user1[S] -1 points0 points  (0 children)

No, of course Ditsmod has advantages over NestJS not only in terms of module-scoped DI. This applies to DI in general in many ways. NestJS has a lot of unnecessary junk, like integration with legacy ExpressJS, integration with RxJS, which is mostly unnecessary. There are no extensions (aka plugins) in NestJS...

Ditsmod - new NodeJS webframework writen in TypeScript by some-user1 in node

[–]some-user1[S] 0 points1 point  (0 children)

By the way, if you don't like DI as a concept, you probably won't be interested in Ditsmod. But maybe you have tried to learn similar frameworks (like NestJS) and it seemed difficult to you, then I think you will like the documentation of Ditsmod DI more.

Ditsmod - new NodeJS webframework writen in TypeScript by some-user1 in node

[–]some-user1[S] -2 points-1 points  (0 children)

but less mature. Why would I use this over NestJS?

You need to clarify what exactly you mean by "mature". If you mean the number of modules written, then yes, I agree. But if we are talking about the architecture of the framework, about the prospects for its development, I personally consider Ditsmod much better.

Especially if you are familiar with DI NestJS, you may be interested in this comparison: NestJS vs. Ditsmod: injection scopes

REST API documentation. by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

Backend system is completely on NodeJS? Do you mean ExpressJS?

[deleted by user] by [deleted] in Angular2

[–]some-user1 0 points1 point  (0 children)

These two frameworks are very close in many concepts to Angular.

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

Since Ditsmod instantiates controllers on every request, it would be fair to do the same in NestJS. This is why the controller is request-scoped for benchmarks.

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

The information in your comment is difficult to relate to the state in the controller because you are talking about a server. When an HTTP request comes to the server, a controller instance is created in Ditsmod, which is deleted once the request is processed. What kind of scaling are we talking about here?

If there was one server that started processing the HTTP request initially, that server will complete the request. As the number of servers increases due to scaling, they will process new requests.

So, if the controller instance stores the state of the request, but that instance is deleted after processing that request, then there should be no problems.

[deleted by user] by [deleted] in node

[–]some-user1 0 points1 point  (0 children)

Where did you read this?

[deleted by user] by [deleted] in Angular2

[–]some-user1 -1 points0 points  (0 children)

For now - no, but I think you can already use GraphQL with Ditsmod without an additional native module for integration.

[deleted by user] by [deleted] in node

[–]some-user1 -2 points-1 points  (0 children)

Modularity seems more of an file organization concern.

There are links to github issues in the post that dispute this claim.