{"id":1496,"date":"2017-01-27T11:18:17","date_gmt":"2017-01-27T11:18:17","guid":{"rendered":"http:\/\/www.testingdocs.com\/questions\/?p=1496"},"modified":"2021-03-21T08:36:38","modified_gmt":"2021-03-21T08:36:38","slug":"what-is-the-difference-between-web-service-and-micro-service","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-is-the-difference-between-web-service-and-micro-service\/","title":{"rendered":"What is the difference between Web Service and Micro service?"},"content":{"rendered":"<h3 style=\"background: white; margin: 0in 0in .25in 0in;\">What is a web service?<\/h3>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">A web service is a service offered by a remote device to another device. The communication happens via the Web, hence the name Web. In a Web service, HTTP protocol is used for device-to-device communication. It is used as the transport protocol for transferring content as XML, JSON, Protocol Buffers, etc.<\/p>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">Web services are implemented using SOAP \/ REST-based. Please find the below picture for better understanding:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1483 size-full\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/WebServices.jpg\" alt=\"\" width=\"1024\" height=\"531\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/WebServices.jpg 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/WebServices-300x156.jpg 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/WebServices-768x398.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h4 style=\"background: white; margin: 0in 0in .25in 0in;\">What is a Microservice?<\/h4>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">Microservice is that the complex service is decomposed into small, light-weight, independent services. These services are small and independent, decoupled, and fitted for doing a small task. These services should be individually deployable, scalable, monitored, etc. Microservices are granular, small, decoupled web services.<\/p>\n<p>Differences:<br \/>\nWell, web service and microservice are not totally unrelated terms. It is possible that web service is a microservice and vice versa. The difference lies in how we develop, deploy, provision, manage, monitor, etc. A lot depends on how we want to develop, deploy, provision, manage, scale, etc. the services.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1459 size-full\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Microservices.jpg\" alt=\"\" width=\"929\" height=\"548\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Microservices.jpg 929w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Microservices-300x177.jpg 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Microservices-768x453.jpg 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">Microservice Architecture<\/p>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">Microservice Architecture usually varies from a monolithic application or service bundle. A monolithic application\/service means a big centralized package deployed on a single server instance. For example, package all the services in a single .ear file and deployed on a single server.<\/p>\n<p style=\"background: white; margin: 0in 0in .25in 0in;\">Microservice architecture is a small deployable instance on multiple distributed environments. For example, service functionality is broken down into individually small .ear files and deployed on multiple server instances, cloud environment etc.<\/p>\n<!--themify_builder_content-->\n<div id=\"themify_builder_content-1496\" data-postid=\"1496\" class=\"themify_builder_content themify_builder_content-1496 themify_builder tf_clear\">\n    <\/div>\n<!--\/themify_builder_content-->\n","protected":false},"excerpt":{"rendered":"<p>What is a web service? A web service is a service offered by a remote device to another device. The communication happens via the Web, hence the name Web. In a Web service, HTTP protocol is used for device-to-device communication. It is used as the transport protocol for transferring content as XML, JSON, Protocol Buffers, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1496","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1496"}],"version-history":[{"count":4,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1496\/revisions"}],"predecessor-version":[{"id":19786,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1496\/revisions\/19786"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}