From the course: Advanced Node.js: Scaling Applications
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Working with databases - Node.js Tutorial
From the course: Advanced Node.js: Scaling Applications
Working with databases
- [Instructor] When scaling Node.js applications across instances, the need for a database arises. When we have multiple instances of the same process cloned, they need to act on the same data, but the memory used by each instance is not shared. When we create our change data on a single instance using memory, that data is not automatically shared across all of your processes. The easiest way to synchronize and share data across all of your processes, is by using a database. A database provides a single access point to store data. If all of your instances communicate with the same database, then they all should have the correct data. I do not recommend building your own database. There are a lot of databases out there that you can implement. The choices range from reliable open-source projects to large enterprise databases that have been around for decades. As a Node.js developer, it is important that you learn to use a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.