Developing Microservices with Node.js

Learn to develop efficient and scalable microservices for server-side programming in Node.js using this hands-on guide
Preview in Mapt

Developing Microservices with Node.js

David Gonzalez

Learn to develop efficient and scalable microservices for server-side programming in Node.js using this hands-on guide

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$5.00
RRP $31.99
Save 84%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$5.00
$39.99
$29.99 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Developing Microservices with Node.js Book Cover
Developing Microservices with Node.js
$ 31.99
$ 5.00
Building Bots with Node.js Book Cover
Building Bots with Node.js
$ 31.99
$ 5.00
Buy 2 for $10.00
Save $53.98
Add to Cart

Book Details

ISBN 139781785887406
Paperback286 pages

Book Description

Microservices architecture is a style of software architecture. As the name suggests, microservicess refers to small services. For a large implementation, this means breaking the system into really small, independent services. Alternative to monolithic architecture (where the entire system is considered as a single big, interwoven segment), microservices approach is getting more and more popular with large, complex applications that have a very long lifecycle, which require changes at regular intervals. Microservices approach allows this type of changes with ease as only a part of the system undergoes changes and change control is easy.

An example of such large system can be an online store—includes user interface, managing product catalog, processing orders, managing customer's account. In a microservices architecture each of these tasks will be divided and into smaller services. Also, these services will be further broken down into independent services—for user interface, there will be separate services for input, output, search bar management, and so on. Similarly, all other tasks can be divided in very small and simple services.

Table of Contents

Chapter 1: Microservices Architecture
Need for microservices
Key design principles
Key benefits
SOA versus microservices
Why Node.js?
Summary
Chapter 2: Microservices in Node.js – Seneca and PM2 Alternatives
Need for Node.js
Seneca – a microservices framework
PM2 – a task runner for Node.js
Summary
Chapter 3: From the Monolith to Microservices
First, there was the monolith
Then the microservices appeared
Organizational alignment
Summary
Chapter 4: Writing Your First Microservice in Node.js
Micromerce – the big picture
Product Manager – the two-faced core
The e-mailer – a common problem
The order manager
The UI – API aggregation
Debugging
Summary
Chapter 5: Security and Traceability
Infrastructure logical security
Application security
Traceability
Summary
Chapter 6: Testing and Documenting Node.js Microservices
Functional testing
Documenting microservices
Summary
Chapter 7: Monitoring Microservices
Monitoring services
Simian Army – the active monitoring from Spotify
Summary
Chapter 8: Deploying Microservices
Concepts in software deployment
Deployments with PM2
Docker – a container for software delivery
Node.js event loop – easy to learn and hard to master
Clustering Node.js applications
Load balancing our application
Summary

What You Will Learn

  • Identify where the microservice oriented architectures can tackle the most common problems in the software used by the big organisations.
  • Re-architecture an existing monolithic system into a microservices oriented software.
  • Build robust and scalable microservices using Seneca and Node.js.
  • Testing of the microservices in insolation in order to create a solid system.
  • Deploy and manage microservices using PM2
  • Monitoring the health of a microservice (CPU, memory, I/O…) and how the degradation of the performance in one microservice could degrade the performance of full system.

Authors

Table of Contents

Chapter 1: Microservices Architecture
Need for microservices
Key design principles
Key benefits
SOA versus microservices
Why Node.js?
Summary
Chapter 2: Microservices in Node.js – Seneca and PM2 Alternatives
Need for Node.js
Seneca – a microservices framework
PM2 – a task runner for Node.js
Summary
Chapter 3: From the Monolith to Microservices
First, there was the monolith
Then the microservices appeared
Organizational alignment
Summary
Chapter 4: Writing Your First Microservice in Node.js
Micromerce – the big picture
Product Manager – the two-faced core
The e-mailer – a common problem
The order manager
The UI – API aggregation
Debugging
Summary
Chapter 5: Security and Traceability
Infrastructure logical security
Application security
Traceability
Summary
Chapter 6: Testing and Documenting Node.js Microservices
Functional testing
Documenting microservices
Summary
Chapter 7: Monitoring Microservices
Monitoring services
Simian Army – the active monitoring from Spotify
Summary
Chapter 8: Deploying Microservices
Concepts in software deployment
Deployments with PM2
Docker – a container for software delivery
Node.js event loop – easy to learn and hard to master
Clustering Node.js applications
Load balancing our application
Summary

Book Details

ISBN 139781785887406
Paperback286 pages
Read More

Read More Reviews

Recommended for You

Building Bots with Node.js Book Cover
Building Bots with Node.js
$ 31.99
$ 5.00
RESTful Web API Design with Node.js - Second Edition Book Cover
RESTful Web API Design with Node.js - Second Edition
$ 23.99
$ 5.00
Node.js 6.x Blueprints Book Cover
Node.js 6.x Blueprints
$ 39.99
$ 5.00
The Node Craftsman Book Book Cover
The Node Craftsman Book
$ 31.99
$ 5.00
Learning Vue.js 2 Book Cover
Learning Vue.js 2
$ 35.99
$ 5.00
Microservices: Building Scalable Software Book Cover
Microservices: Building Scalable Software
$ 71.99
$ 5.00