Hands-On Microservices with Node.js, 2nd Edition
- Length: 328 pages
- Edition: 2nd edition
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2018-06-29
- ISBN-10: 1788620216
- ISBN-13: 9781788620215
- Sales Rank: #631742 (See Top 100 Books)
Hands-On Microservices with Node.js: Build, test, and deploy robust microservices in JavaScript
Understand microservice concepts while learning to develop with Express, deploy with Docker, and scale with Swarm and Kubernetes using Node 10
Key Features
- Write clean and maintainable code with JavaScript for better microservices development
- Build Cloud Native microservices using just Node and Express
- Develop smart, efficient, and fast enterprise-grade microservices implementation
Book Description
Microservices enable us to develop software in small pieces that work together but can be developed separately; this is one reason why enterprises have started embracing them. For the past few years, Node.js has emerged as a strong candidate for developing microservices because of its ability to increase your productivity and the performance of your applications.
Hands-On Microservices with Node.js is an end-to-end guide on how to dismantle your monolithic application and embrace the microservice architecture – right from architecting your services and modeling them to integrating them into your application. We’ll develop and deploy these microservices using Docker. Scalability is an important factor to consider when adding more functionality to your application, and so we delve into various solutions, such as Docker Swarm and Kubernetes, to scale our microservices. Testing and deploying these services while scaling is a real challenge; we’ll overcome this challenge by setting up deployment pipelines that break up application build processes in several stages. Later on, we’ll take a look at serverless architecture for our microservices and its benefits against traditional architecture. Finally, we share best practices and several design patterns for creating efficient microservices.
What you will learn
- Learn microservice concepts
- Explore different service architectures, such as Hydra and Seneca
- Understand how to use containers and the process of testing
- Use Docker and Swarm for continuous deployment and scaling
- Learn how to geographically spread your microservices
- Deploy a cloud-native microservice to an online provider
- Keep your microservice independent of online providers
Who This Book Is For
Hands-On Microservices with Node.js is for anyone who knows the basics of Node.js, wants to enter the world of microservices, and learn why they’re so popular. It is also useful if you’re a microservices developer using other languages.
Table of Contents
Chapter 1 Age of Microservices
Chapter 2 Modules and Toolkits
Chapter 3 Building a Microservice
Chapter 4 State and Security
Chapter 5 Testing
Chapter 6 Deploying Microservices
Chapter 7 Scaling, Sharding, and Replicating
Chapter 8 Cloud Native Microservices
Chapter 9 Design Patterns
Cover Title Page Copyright and Credits PacktPub.com Contributors Table of Contents Preface Chapter 1: The Age of Microservices Introducing microservices Introducing Node.js Modules Arrow functions Classes Promises and async/await Spread and rest syntax Default function parameters Destructuring Template literals Advantages of using Node.js Node.js Package Manager Asynchronous I/O Community From monolith to microservices Patterns of microservices Decomposable Autonomous Scalable Communicable Disadvantages of microservices Summary Chapter 2: Modules and Toolkits Express Micro Seneca Hydra Summary Chapter 3: Building a Microservice Using Express Uploading images Checking an image exists in the folder Downloading images Using route parameters Generating thumbnails Playing around with colors Refactor routes Manipulating images Using Hydra Using Seneca Plugins Summary Chapter 4: State and Security State Storing state MySQL RethinkDB Redis Conclusion Security Summary Chapter 5: Testing Types of testing methodologies Using frameworks Integrating tests Using chai Adding code coverage Covering all code Mocking our services Summary Chapter 6: Deploying Microservices Using virtual machines Using containers Deploying using Docker Creating images Defining a Dockerfile Managing containers Cleaning containers Deploying MySQL Using Docker Compose Mastering Docker Compose Summary Chapter 7: Scaling, Sharding, and Replicating Scaling your network Replicating our microservice Deploying to swarm Creating services Running our service Sharding approach Replicating approach Sharding and replicating Moving to Kubernetes Deploying with Kubernetes Summary Chapter 8: Cloud-Native Microservices Preparing for cloud-native Going cloud-native Creating a new project Deploying a database service Creating a Kubernetes cluster Creating our microservice Deploying our microservice Summary Chapter 9: Design Patterns Choosing patterns Architectural patterns Front Controller Layered Service Locator Observer Publish-Subscribe Using patterns Planning your microservice Obstacles when developing Summary Other Books You May Enjoy Index
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/PacktPublishing
2. In the Find a repository… box, search the book title: Hands-On Microservices with Node.js, 2nd Edition
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.