Service Oriented Architecture in NodeJS

Posted by Jay Dee
7
Nov 11, 2022
267 Views

Serviceoriented architecture is a way to Building a backend applications by consisting multiple independent services. A service can be any business logic that completes an action and provides a specified result to the end point user.

Each service in SOA is a complete business function in itself.

For an Example

Let’s discuss about a grocery store.

The owner add the product details in the inventory. Then owner search to find data about a unique product. And the backend application database query should be inside the service section by leveraging data access layer. Then it securely fetch data and give the response to the owner.

Layers in Service oriented Architecture

  1. Router layer
  2. Service layer
  3. Data access layer

How SOA Works

        Here first when API call, in node app first it face router section where all the authentication and validation occur through the middleware function. Then control moves towards controller section which work is collect the incoming data related to APIrequest. Here all the business logic to access data are combined inside a service.


Read more on Service Oriented Architecture in NodeJS

Comments
avatar
Please sign in to add comment.