Ask HN: Tasked to keep alive a big Node.js project how to do it?

https://news.ycombinator.com/item?id=33224686
by iot_devs • 4 years ago
2 5 4 years ago

Hello folks,

For sure you folks have more experience.

My day job asked me to keep alive and productive a large Nodejs codebase.

The codebase works against Nodejs 12, that is well deprecated.

We never tried to run it against a more modern version, the common assumption in the team is that the code won't even load, but even if it loads we are not sure of the result, will it crash at the first request?

There are some tests that of course we will run against it.

As always, the codebase is quite important for the company and it must keep working.

I'll like to migrate it to the latest LST, more for peace of mind than anything else.

How would you approach the problem? A very well backed up docker image?

Really migrate to the latest LST?

How would you migrate, one big jump from 12 to 18? Or several smaller upgrades, 12 to 14 and then 14 to 16 and finally 16 to 18? Why?

How much time in your experience should we schedule for the migration? Will it be mostly painless and take a couple of months, or it will be a huge project that will last years?

We have a big monolithic and a couple of hundreds of AWS lambda functions.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com