Step by Step Create A Miscroservice

Microservices are an architectural method of software development in which applications are constructed as a set of small, independent, and loosely connected services.

Well-defined APIs let these services talk with one another via a network. Usually owned by a small, self-contained team, each service can be delivered and scaled separately.

SET ENVIRONMENT

 

 

TEST MICROSERVICE

  • Ready to send a Sendrequest
  • Run Catalog.API through profile  ‘https’
    • it start running at url: https://localhost:5050/
  • Send HTTP POST request through Postman
  •  Lets put bookmarks on Endpoint method “AddRoutes
  • In Visual Studio, If you expand the request, you can see the request values comes in here that we send as a Json payload.
    • Convert these request object to the command object. And after that mediator will send the command to the internal handler class.
    • Our internal handle class is triggered. And in this code will perform business logic with creating new product and passing and skipping the database operation.
  • You can see the result and see the id is newly created product.

 


f


f

Author
Full Stack Developer

Deepak Talwar

Technical Architect & Full Stack Developer with 18+ years of Professional Experience in Microsoft Technologies & PHP Platform. Hands on experience with C#, VB, ASP.NET, ASP.NET MVC, ASP.NET Core, ASP.NET Web API, Linq, ADO.NET, Entity Framework, Entity Framework Core, Sql Server, MYSQL, NoSql, Javascript, Angular, jQuery, AWS, Azure, React, Angular, Laravel, Codeingiter, Serenity, VBA, Cloud Computing, Microservices, Design Patterns, Software Architecture, Web Design and Development.

Related Post