Developing Microservices with Node.js by David Gonzalez

By David Gonzalez

Learn to advance micro, effective, and scalable providers for server-side programming in Node.js utilizing this hands-on guide

About This Book

  • Real international instance defined bankruptcy after bankruptcy with code examples.
  • Useful options for different languages like Java or PHP
  • Easy to persist with through individuals with little to none event in Node.js
  • Node.js model 0.12.2 and the most recent appropriate models of Seneca and PM2

Who This booklet Is For

Node.js developer with uncomplicated server-side improvement wisdom - yet no wisdom of imposing microservices in Node.js purposes. additionally worthy for builders in different languages like Java or C#.

What you'll Learn

  • Identify the place the microservice orientated architectures can take on the most typical difficulties within the software program utilized by the large organisations.
  • Re-architecture an current monolithic approach right into a microservices orientated software.
  • Build powerful and scalable microservices utilizing Seneca and Node.js.
  • Testing of the microservices in insolation with a purpose to create a superior system.
  • Deploy and deal with microservices utilizing PM2
  • Monitoring the health and wellbeing of a microservice (CPU, reminiscence, I/O…) and the way the degradation of the functionality in a single microservice may well degrade the functionality of complete system.

In Detail

Microservices structure is a mode of software program structure. because the identify indicates, microservicess refers to small prone. For a wide implementation, this suggests breaking the method into fairly small, autonomous companies. substitute to monolithic structure (where the full procedure is taken into account as a unmarried mammoth, interwoven segment), microservices technique is getting an increasing number of well liked by huge, advanced purposes that experience a really lengthy lifecycle, which require alterations at general durations. Microservices method permits this sort of alterations conveniently as just a a part of the method undergoes alterations and alter keep an eye on is easy.

An instance of such huge process might be a web store-includes person interface, coping with product catalog, processing orders, coping with customer's account. In a microservices structure every one of those projects can be divided and into smaller prone. additionally, those providers could be additional damaged down into self sustaining services-for person interface, there'll be separate companies for enter, output, seek bar administration, etc. equally, all different initiatives should be divided in very small and easy services.

Show description

Read Online or Download Developing Microservices with Node.js PDF

Best javascript books

Beginning Backbone.js

Starting spine. js is your step by step advisor to studying and utilizing the spine. js library on your internet tasks. spine. js is without doubt one of the most well liked JavaScript libraries between net builders, used to create modular, single-page internet apps. This booklet takes you from downloading spine. js and its dependencies the entire option to utilizing extra complicated libraries to constitution your program structure, and every little thing in among.

Javascript 1.1 Developer's Guide

A qualified developer's reference for boosting commercial-grade sites explains tips to use JavaScript to hyperlink applets, multimedia courses, plugins, and extra. unique. (Advanced).

Beginning JSP, JSF and Tomcat: Java Web Development

Commence construction Java–based net purposes now, whether you’re a whole newcomer to Java. finished and example–driven, starting JSP, JSF, and Tomcat: Java net improvement, moment variation is all you must strengthen dynamic Java-based net functions utilizing JSP, connect with databases with JSF, and positioned them into motion utilizing the world’s most well liked open resource Java net server, Apache Tomcat.

Clojure for Java Developers

Key FeaturesWrite apps for the multithreaded international with Clojure's taste of sensible programmingDiscover Clojure's good points and merits and use them on your latest projectsThe booklet is designed in order that you can be capable placed to exploit your latest abilities and software program wisdom to develop into a more beneficial Clojure developerBook DescriptionWe have reached some degree the place machines should not getting a lot speedier, software program tasks have to be introduced fast, and top of the range in software program is extra tough as ever.

Additional resources for Developing Microservices with Node.js

Example text

After a partial fail on a transaction, each microservice instance should store the information required to recover the transaction so that the information will be eventually consistent. Following the previous example, if we send the book without processing the payment, the payment gateway will have a failed transaction that someone will process later on, making the data consistent again. The best way to solve this problem is decentralizing the governance. Every endpoint should be able to take a local decision that affects the global scope of the transaction.

Chapter 3, From the Monolith to Microservices, covers how to tackle the organic growth (unplanned software changes) using microservices. We will also talk about how to split a monolithic application into microservices. js, explains how to write our first microservice. Chapter 5, Security and Traceability, covers how security and traceability are two important characteristics of modern systems. We need to keep the information secure and the actions traceable. In this chapter, we will discuss how to do it using Seneca.

However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Download PDF sample

Rated 4.54 of 5 – based on 30 votes