O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Disadvantages

While this approach does solve most of the complexities, it introduces a few trade-offs:

  • Asynchronous programming can sometimes be painful to handle. It can't be figured out by just looking at the code. A thorough understanding of Event Loop as shown in Chapter 2Gearing up for the Journey, is must to understand the actual workflow in async coding.
  • Complexity and centralized code are now shifted in individual services. The flow control is now broken up and distributed across all the services. This may introduce redundant code in the system.

Like everything, a one-size-fits-all approach doesn't work here. Several hybrid approaches have come along, which take advantage of both processes. Let's now take a look at some hybrid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required