Web Services and Microservices

Web Services and Microservices

What are Web Services?

Web services provide a way of exposing functionality of the application via API over HTTP. It provides a common format to communicate for systems built in different web frameworks. Depending on the usage they can be oriented around business and consist of multiple services or can be a single monolithic API allowing access to the application. 

Generally, they are used to expose application utility to external parties

What are Micro Services?

Microservice is a deployable and scalable unit of the application which is modeled around a business domain. It is essentially a method of breaking large apps into modules and independently handling (deploying and scaling) them. This is essentially done to isolate failures in large applications.

 They are oriented around a business domain. For eg. In an e-commerce backend like Amazon, the microservices could be an Account component, Recommendations component, Products Catalog component, Customer Handling component, Billing and Checkout component etc. Generally, they are used to organize components internally.

What is the core difference?

Both web services and microservices conceptually divide the application into multiple services utilizing SOA concepts. The core difference between the two is related to deployment and scaling. While web services are an old concept, microservices are relatively new. Microservices in addition to providing an API like web services also provides isolation from failure and scalability and deployment. This is why it is becoming increasingly popular in larger backends like Amazon where individual microservices can be scaled/deployed/versioned (handled) as per requirement.  

To view or add a comment, sign in

More articles by ☘️Ashutosh Singh

  • Service workers

    Service workers are an important part of building PWAs. A service worker is a script that runs in the background…

  • Introduction to testing web apps using Lighthouse

    Introduction: I already have an article up on how I have improved page load times of projects shortening it by 100% -…

  • Getting meta about Meta tags

    Meta tags provide metadata about the HTML document. It is generally used to instruct browsers and other services like…

  • Lessons learnt in the trench as a software engineer

    One of the most obvious ways to become a better programmer is to read code. The other ways are to actually code and…

  • Fixing bugs in your .NET web project by ELMAH

    Error logging is a crucial part of applications. I have significant experience looking at error logs and debugging…

  • What is Do Not Track (DNT)?

    The DNT header is a HTTP header field which requests that websites do not enable cross-site tracking for an individual…

  • Cookies - To be or not to be

    What are cookies? Cookies are text files stored on the user's machine and are typically transferred between client and…

  • Speeding your Pages Up

    I personally believe in the adage make it correct, make it concise, make it readable and then make it quick in that…

  • Tools of the trade

    Growing up I was always fascinated by tools, especially how easy they made certain tasks easy to perform. Apart from…

Explore content categories