Book Image

Building RESTful Web Services with .NET Core

By : Gaurav Aroraa, Tadit Dash
Book Image

Building RESTful Web Services with .NET Core

By: Gaurav Aroraa, Tadit Dash

Overview of this book

REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs. The depth, breadth, and ease of use of ASP.NET Core makes it a breeze for developers to work with for building robust web APIs. This book takes you through the design of RESTful web services and leverages the ASP.NET Core framework to implement these services. This book begins by introducing you to the basics of the philosophy behind REST. You'll go through the steps of designing and implementing an enterprise-grade RESTful web service. This book takes a practical approach, that you can apply to your own circumstances. This book brings forth the power of the latest .NET Core release, working with MVC. Later, you will learn about the use of the framework to explore approaches to tackle resilience, security, and scalability concerns. You will explore the steps to improve the performance of your applications. You'll also learn techniques to deal with security in web APIs and discover how to implement unit and integration test strategies. By the end of the book, you will have a complete understanding of Building a client for RESTful web services, along with some scaling techniques.
Table of Contents (13 chapters)

How a microservice architecture works

In previous sections, we discussed the microservice architecture and tried to shine more light on this term. Now, you can see how a microservices architecture might work; you can use any combination according to your own design approach. Here are a few points to remember when working on a microservice architecture:

  • It is programming for the modern era, where we should follow all SOLID principles. It’s object-oriented programming (OOP).
  • It is the best way to expose functionality to other or external components so any programming language can use the functionality without adhering to any user interfaces or services (web services, API, REST services, and so on.)
  • The whole system works in collaboration, which is not interconnected and interdependent.
  • Each component is responsible for its own functionality.
  • It segregates code. Segregated...