What is the difference between microservices and webservices?

A microservice is a software architecture, which can be implemented with webservices.

A webservice is just a technology (one of many) for providing services over "web" or HTTP.


The main point is: a web service is (as the name announces) something that you would expect to "deal" with HTTP - in other words it does something in the context of the world wide web.

Whereas a microservice is not subject to the WWW context. At its core a microservice is supposed to provide one specific service - but there is no restriction to the http protocol for example.

Often a microservice implements a restful "web service" - but it doesn't have to be that way!

Beyond that, microservices are often meant as counter model to a huge monolithic application that serves many different kind of requests.


Microservices are the extension of web services.

  • Web services are typically vertical in nature(Provider-Consumer communication) whereas microservices are horizontal in nature
  • Microservices are seen as architecture due to the following.
  • microservices have belonged to one specific application.
  • microservices are addressing specific concern so that can be said as lightweight.
  • Changes are isolated in nature because the change in one microservice doesn't affect other (Ex. Changes done in login microservice does not affect the payment microservice)
  • Scaling individual microservices are easy.
  • Microservice usually has its own database.

I got simple answer here that says : Microservices is a new software architecture. It is based on web services. But it can be any service implemented as an independent feature that has its own database and can be deployed independently.

Microservices is an architecture wherein all the components of the system are put into individual components, which can be built, deployed, and scaled individually.