Java Login

About javalogin.com

Hello guys,
javalogin.com is for Java and J2EE developers, all examples are simple and easy to understand 

It is developed and maintained by Vaibhav Sharma. The views expressed on this website are his own and do not necessarily reflect the views of his former, current or future employers. I am professional Web development. I work for an IT company as Senior Consultant. Primary I write about spring, hibernate and web-services. I am trying to present here new technologies.


Next >>     


MicrosServices


Microservices is a form of service-oriented architecture style wherein applications are built as a collection of different smaller services rather than one whole app. It is a software engineering approach which focuses on decomposing an application into single-function modules with well-defined interfaces. These modules can be independently deployed and operated by small teams who own the entire lifecycle of the service. These microservices can interact with other microservices and can have unique URLs or names while being always available and consistent even when failures are experienced.


Characteristics of MicroServices

  • Multiple Components
  • Built For Business
  • Simple Routing
  • Decentralized
  • Failure Resistant
  • Evolutionary

Benefits of Microservices

There are several benefits to using microservices. These are -

  • The microservice architecture divided into smaller applications and it is not dependent on the same coding language
  • It helps developers come up with a program faster with lower costs and fewer bugs.
  • The microservice architecture enables continuous delivery
  • The code is organized around business capabilities
  • Complement cloud activities
  • Scalability and reusability, as well as efficiency
  • It simplify security monitoring because the various parts of an app are isolated
  • Microservice architecture gives developers the freedom to independently develop and deploy services
  • No long-term commitment to technology stack
  • The developers can make use of the latest technologies
  • Easy to scale and integrate with third-party services

Challenges of Microservices

Microservices architecture has some challenges. These are -

  • The microservice architecture divided into smaller applications and it is not dependent on the same coding language. It can be use many programming languages
  • Integration between modules and Integration testing is difficult
  • Communication between modules is complicated
  • Being a distributed system, it can result in duplication of effort
  • Increasing number of services can result in information barriers
  • Due to distributed deployment, testing can become complicated and tedious
  • Partitioning the application into microservices is very much an art
  • The architecture usually results in increased memory consumption
  • Developers have to put additional effort into implementing the mechanism of communication between the services
  • When number of services increases, integration and managing whole products can become complicated
  • The architecture usually results in increased memory consumption
  • Developers have to put additional effort into implementing the mechanism of communication between the services

Examples of Microservices Frameworks for Java

There are several microservices frameworks that you can use for developing for Java. Some of these are:

  • Spring Boot: This is probably the best Java microservices framework that works on top of languages for Inversion of Control, Aspect Oriented Programming, and others.
  • Jersey: This open source framework supports JAX-RS APIs in Java is very easy to use.
  • Swagger: Helps you in documenting API as well as gives you a development portal, which allows users to test your APIs.



Next >>