Node.js

258

Solutions

362

Contributors

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

Share tech news, updates, or what's on your mind.

Sign up to Post

I am new to node.js coming from a c#.net background. When coding in .net, I was use to using several of the design patterns to organize my code, service layer, repository, etc. When I needed to add logic that spanned multiple models, I could use services for this as well. Moving to node.js and reviewing examples and sample code, etc. I do not see alot of utilization of service layer, repositories, etc. What are some of the recommended practices for the following:

1) Code organization and structure, especially for apps rich in business logic?

2) How to handle logic that spans multiple models?

3) What are some good tutorials and sample code sites that demonstrate some good project and code structure with items (1 and (2 in mind?

.net comes with alot of recommended approaches, practices, patterns and coding structure techniques that are actually very good recommendations, which . Sites like www.asp.net, etc. provide pretty good articles, etc. for these recommendations.

I am having trouble finding a consistent approach reviewing node.js examples.
0
We've NodeJS applications running inside docker containers. Sometimes, if any process gets locked down or due to any other issue the app goes down and we've to manually login to each container n restart the application. I was wondering if there is any sort of control panel that allow us to easily and quickly restart those and see the whole health of the system.

Please Note: we can't use --restart flag because essentially application doesn't exist with exist code. It run into problem like some process gets blocked, things are just getting bogged down vs any crashes and exist codes. That's why I don't think restart policy will help in this scenario.
0

Node.js

258

Solutions

362

Contributors

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world.

Top Experts In
Node.js
<
Monthly
>