LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

What is the use of microservices?

Can anyone please explain me the use of microservices.

Up Vote Down Vote 0 Votes
Posted 3 months ago

Answers


A microservice is a collection of focused and small services which, on execution develops a complete application. A single responsibility of the application which you are developing is represented by an instance of a microservice.

Microservice Architecture comprises several distinctive independent applications. And is all about how well these applications connect with each other to develop an integrated business solution!

There are several advantages of having a Microservices and major companies like Netflix, Nike and many more have backed up the pros that microservices offer.

1.Flexible development - Different microservices can be written in different programming languages. They are not dependent on the platform used for developing any neighbour microservices providing the development team flexibility to make updates or create an entire feature in a new source code.

2.Established around business capabilities - It is not organized around software layers, meaning there is no need for us to create a web MS, a business MS or a Database MS. Instead, we create MS around business capabilities. So we create a microservice for handling:

  • Inventory
  • Wishlist
  • Authenticating Debit/Credit cards
  • Filtering Products etc.

3.Modifications are done easy - With businesses expanding modifications comes as a part of life for a software developer. Microservices creates a loosely coupled system. So if we ever want to rebuild, upgrade or replace any microservice then we don’t need to rebuild the complete application, simply rebuilding that particular Microservice will do just fine. 4.Stateless Communication - Each request and the respective response establishes independent transactions helping you to scale effortlessly. 5Preventing a complete shutdown of a product- If one of your microservice goes south then that won’t lead to disruption of other microservices. Also, we can perform a modification on that microservice which went south by simply disabling it and not the entire system. 6.Data Security - Ideally, each Microservice has a unique data storage supporting a single business capability. For example, a customer registration page. This prevents from exposure of complete data to people with ill intentions who try to gain access into your servers.

Intrigued to know more about this latest buzzword? Along with the pros there comes testing challenges related to Microservice like struggling coordination, re-architecture from monolithic to microservice architecture, performance tracing and many more.

Up Vote Down Vote 0 Votes
Posted 3 months ago
167 Views
1 Answer
3 months ago