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

src/business-layer

This folder has the implementation of business logic and other resources that are needed by the service layer or the middleware layer, as follows:

  • Security: If we want some security or tokens at a particular microservice level, this is where we will add our authentication logic (generally, we don't write the authentication layer at the individual service level). Rather, we write it at the API Gateway level, which we will see in Chapter 5Understanding API Gateway. Here, we will write code for the service registration/deregistration, verification, internal security, microservices communicating with the service registry, the API Gateway, and so on.
  • Validators: This will have schema and processing logic for validating data ...

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