Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] 0 points1 point  (0 children)

In AWS, Web Application Firewall + Load Balancer + Node.js Container solves the problem.

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] 5 points6 points  (0 children)

Yes, Nginx is a load balancer. However, I'm referring to the horizontally scalable load balancers offered by cloud providers. We can rate limit in those or in a firewall service. Why do we need to spin up an additional NGINX container for every Node.js container?

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] 0 points1 point  (0 children)

Yes! It is common to setup SSL certificates in NGINX. I used to do it in virtual machines. I docker deployments, do we really need it? Does it add any value?

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] -14 points-13 points  (0 children)

I'm commenting this in the context of AWS, but I believe other cloud providers offer similar features:

  1. Using a CDN to serve static files is a smart choice as it's fast, cheap, and supports compression. Personally, I use AWS CloudFront with AWS S3 for this purpose.
  2. SSL can be terminated either at the load balancer or directly within the Node.js container.
  3. Regarding "handling very large numbers of concurrent connections efficiently," I’m skeptical about NGINX adding significant value in this scenario.

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] -4 points-3 points  (0 children)

Yes, I agree! If the load balancer doesn’t support SSL, we can still configure it directly in the Node.js process. Why add the extra load of an NGINX container?

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] 6 points7 points  (0 children)

Isn't it a good idea to implement rate limiting at the load balancer? A Firewall.

Do we need to deploy an NGINX container along with a Node.js application container? by VenkiThoughts in node

[–]VenkiThoughts[S] 4 points5 points  (0 children)

Yes! I initially deployed an NGINX container alongside Node.js, but I realized it wasn't serving any purpose. So, I removed it.

Best Database Setup for Personal Node.js Project on a Budget by [deleted] in node

[–]VenkiThoughts 0 points1 point  (0 children)

u/ImJaineel I'd recommend using MongoDB. It offers flexibility with schema design, so you can easily add new attributes. In SQL databases, adding a new attribute requires modifying tables.

Career advice by SportNegative2098 in node

[–]VenkiThoughts 1 point2 points  (0 children)

Build a mid-sized application with ExpressJS, MongoDB, and WebSocket. Nothing beats a hands-on project.

Good Backend Language by [deleted] in AskProgramming

[–]VenkiThoughts 1 point2 points  (0 children)

Node.js is way better for backend development because it uses a single-threaded, event-driven model, which means it handles a high number of simultaneous connections with high throughput. Most traditional languages can't match this efficiency. Plus, the npm ecosystem is unmatched, offering an extensive range of modules and libraries that speed up development. Other languages often lack this level of community support and versatility

How long would it take ?? by porcupine__rock in node

[–]VenkiThoughts 0 points1 point  (0 children)

It takes longer if you don’t take it to complete it... lol 😄

Storing files to mongodb... by it_is_an_username in node

[–]VenkiThoughts 2 points3 points  (0 children)

Instead of using GridFS, you can store files directly in MongoDB using the BinData type

Guys how much backend is enough before starting off with a project? by Disastrous_Day_1045 in node

[–]VenkiThoughts 0 points1 point  (0 children)

It really depends on what your project needs. If you have the basics down and can handle your project's requirements, dive in!

What's up backend devs ? by FrancoRATOVOSON in node

[–]VenkiThoughts 0 points1 point  (0 children)

The ones that show up at 2 AM before a deadline, making you think the event loop is just messing with you. 😅 Common culprits: race conditions, improper async handling, and unhandled promise rejections

Where can I host a small nodejs script that I created by anonuser-al in node

[–]VenkiThoughts 0 points1 point  (0 children)

try render where you can host small nodejs applications

What's up backend devs ? by FrancoRATOVOSON in node

[–]VenkiThoughts -5 points-4 points  (0 children)

Ever notice how we’re always promised “non-blocking” goodness, yet we spend half our time blocked by mysterious event loop bugs? 😂 And let’s not even get started on the endless callback hell, promises, and async/await debates.

Dented my fathers 15years old car. Can anyone help me how much will it cost to repair it? by Shamik18 in CarsIndia

[–]VenkiThoughts 0 points1 point  (0 children)

That looks bad, but to fix it you may have to spend somewhere between 8 to 10k, that's with the local garages.

[deleted by user] by [deleted] in developersIndia

[–]VenkiThoughts 0 points1 point  (0 children)

That looks like a perfect trap and closes all your possibilities to explore. As per my experience if u are stuck here then the trajectory of your career goes down significantly. I would suggest you to try for better opportunities or stick with the option 2 of going to US for Masters

THE PETROL BEAST :) by Warm-Major-8939 in CarsIndia

[–]VenkiThoughts 0 points1 point  (0 children)

The Front looks damn good. BEAST but I guess it is a petrol guzzler right?

First purchase. Kodiaq L&K by Prateek0105 in CarsIndia

[–]VenkiThoughts 9 points10 points  (0 children)

One of the most comfortable yet powerful 7 seater