Hands-On Microservices with Node.js

Build, test, and deploy robust microservices in JavaScript
Packt Publishing
  • erschienen am 29. Juni 2018
  • |
  • 328 Seiten
E-Book | ePUB mit Adobe-DRM | Systemvoraussetzungen
978-1-78862-683-5 (ISBN)
Learn essential microservices concepts while developing scalable applications with Express, Docker, Kubernetes, and Docker Swarm using Node 10Key FeaturesWrite clean and maintainable code with JavaScript for better microservices developmentDive into the Node.js ecosystem and build scalable microservices with Seneca, Hydra, and Express.jsDevelop smart, efficient, and fast enterprise-grade microservices implementationBook DescriptionMicroservices 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 learnLearn microservice conceptsExplore different service architectures, such as Hydra and SenecaUnderstand how to use containers and the process of testingUse Docker and Swarm for continuous deployment and scalingLearn how to geographically spread your microservicesDeploy a cloud-native microservice to an online providerKeep your microservice independent of online providersWho this book is forThis book is for JavaScript developers seeking to utilize their skills to build microservices and move away from the monolithic architecture. Prior knowledge of Node.js is assumed.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
  • Für Beruf und Forschung
  • 89,32 MB
978-1-78862-683-5 (9781788626835)
weitere Ausgaben werden ermittelt
Diogo Resende is a developer with more than 15 years of experience, working with Node.js almost from the beginning. His computer education and experience in many industry and telecommunication projects have given him a wider background knowledge of other architecture components that influence the overall performance.
  • 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

Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Bitte beachten Sie bei der Verwendung der Lese-Software Adobe Digital Editions: wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

32,49 €
inkl. 7% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe-DRM
siehe Systemvoraussetzungen
E-Book bestellen