Divide and Conquer – Microservices with Node.js
summary
Shows how Node.js can be used for microservices by building an Express HTTP/MVC article service with a model and database, using TypeScript for types, npm/yarn for package management, Jasmine and Frisby for tests, remote logging to a collector, and Docker for container deployment. Presents swapping the transport layer to Seneca (command/pattern patterns over TCP or message queues) for asynchronous communication, uses PM2 to run multiple Node worker processes, and notes the operational costs such as added complexity and the need for clustered databases as traffic grows.
AI-written summary · about
chapters (22)
- 0:00Node.js microservices
- 1:10Microservices basics
- 2:37When to use microservices
- 4:47Node.js advantages
- 6:13Webshop example
- 8:44MVC microservice
- 11:40Database coupling
- 13:26npm and yarn
- 13:48Express HTTP
- 16:35Simple structure
- 18:25Code conventions
- 20:08TypeScript structure
- 21:38Modeling and DB access
- 24:07Async with Promises
- 25:51Error handling
- 27:57Testing microservices
- 31:26Scaling Node.js
- 34:01Docker for Node.js
- 35:48API Gateway
- 36:30Seneca communication
- 42:19Seneca with Express
- 44:28Summary
related talks
52mMicroservices the Lean Way NodeJS
48mMicroservices with NodeJS
29mNode Microservices - the definitive guide
27mProgressive Microservices with NodeJS
44mMicroservices - the lean way (NodeJS)
22mRapidly Developing Microservices with Node js and Docker
01h 08mThrough Microservice Land with Node.js
35mRethinking Enterprise Architectures with Node.js
