Skip to Content
Full Stack Development with JHipster
book

Full Stack Development with JHipster

by Deepu K Sasidharan, Sendil Kumar N
March 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 23m
English
Packt Publishing
Content preview from Full Stack Development with JHipster

Fault tolerance and failover

In a microservice architecture, there might be many reasons for a fault. It is important to handle faults or failovers gracefully, as follows:

  • When the request takes a long time to complete, have a predetermined timeout instead of waiting for the service to respond.
  • When the request fails, identify the server, notify the service registry, and stop connecting to the server. This way, we can prevent other requests from going to that server.
  • Shut down the service when it is not responding and start a new service to make sure services are working as expected.

This can be achieved using the following:

  • Fault tolerance libraries, which prevent cascading failures by isolating the remote instance and services that are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full Stack Development with JHipster - Second Edition

Full Stack Development with JHipster - Second Edition

Deepu K Sasidharan, Sendil Kumar Nellaiyapen
Jasmine Cookbook

Jasmine Cookbook

Munish Kumar

Publisher Resources

ISBN: 9781788476317Supplemental Content