Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Microservices with JavaScript

You're reading from   Hands-On Microservices with JavaScript Build scalable web applications with JavaScript, Node.js, and Docker

Arrow left icon
Product type Paperback
Published in Dec 2024
Publisher Packt
ISBN-13 9781788625401
Length
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Tural Suleymani Tural Suleymani
Author Profile Icon Tural Suleymani
Tural Suleymani
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Part 1:Fundamentals of Microservices Architecture
2. Chapter 1: Introduction to Microservices FREE CHAPTER 3. Chapter 2: Diving into Microservices Internals 4. Chapter 3: What Do You Need Before Getting Started? 5. Chapter 4: Stack Development Technologies 6. Part 2:Building and Managing Microservices
7. Chapter 5: Basic CRUD Microservices 8. Chapter 6: Synchronous Microservices 9. Chapter 7: Asynchronous Microservices 10. Chapter 8: Real-Time Data Streaming Using Microservices 11. Part 3:Securing, Testing, and Deploying Microservices
12. Chapter 9: Securing Microservices 13. Chapter 10: Monitoring Microservices 14. Chapter 11: Microservices Architecture 15. Chapter 12: Testing Microservices 16. Chapter 13: A CI/CD Pipeline for Your Microservices 17. Index 18. Other Books You May Enjoy

Summary

This chapter was about microservice communication. We talked about different communication techniques such as REST, GraphQL, and RPC.

We discussed the fact that we mostly use two types of communication forms between microservices: synchronous and asynchronous. Sync is simple and has immediate feedback, but it is a blocking operation with attributes such as a single point of failure and coupling. We talked about the advantages and disadvantages of sync and discussed when to and when not to use it in practice.

On the other hand, we learned that async is non-blocking and comes with delayed responses. It is mostly preferable (depending on the task) but brings additional complexity. To make async happen, we learned that we mostly need additional layers like message brokers.

The last part of the discussion was centered around the most used patterns such as API gateway and message broker.

API gateway, as an orchestrator, provides a single point of entry with additional...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image