Micro Services Architecture - Spring Boot and Netflix Infrastructure

MicroServices Architecture – Spring Boot and Netflix Infrastructure

What is MicroService?

The main objective of the microservices implementation is to split up the application as a separate service for each core and API service functionality and it should be deployed independently on the cloud. We have chosen the reactive programming language from the spring.io family project with a set of components that can be used to implement our operations model. Spring Cloud integrates the Netflix components in the spring environment in a very nice way using auto-configuration and convention over configuration similar to how Spring Boot works.

Why Microservices Architecture?

microservices architecture - OptiSol

We chose microservices architecture to write each functionality as a separate service for core and API functionality and it helps us to achieve continuous delivery and integration.

 

Patterns in Microservices Architecture

Patterns in Microservices Architecture

Microservices Architecture via Netflix Components

We have used the Netflix components to accomplish the above microservices architecture patterns.

    Operations Component   Spring, Netflix OSS
Service Discovery server Netflix Eureka
Edge Server Netflix Zuul
Central configuration server Spring Cloud Config Server
Dynamic Routing and Load Balancer Netflix Ribbon
OAuth 2.0 protected API’s Spring Cloud + Spring Security OAuth2
Monitoring Netflix Hystrix dashboard and turbine

 

Major Components of Netflix

Netflix MicroservicesNetflix Eureka – Service Discovery Server

Netflix Eureka allows microservices to register themselves at runtime as they appear in the system landscape.

 

Netflix Ribbon – Dynamic Routing & Load BalancerNetflix Ribbon

Netflix Ribbon can be used by service consumers to lookup services at runtime. Ribbon uses the information available in Eureka to locate appropriate service instances. If more than one instance is found, Ribbon will apply load balancing to spread the requests over the available instances. The ribbon does not run as a separate service but instead as an embedded component in each service consumer.

Netflix Zuul - Edge ServerNetflix Zuul – Edge Server

Zuul is (of course) our gatekeeper to the outside world, not allowing any unauthorized external requests to pass through. Zulu also provides a well-known entry point to the microservices in the system landscape. Using dynamically allocated ports is convenient to avoid port conflicts and to minimize administration but it makes it of course harder for any given service consumer. Zuul uses Ribbon to look up available services and routes the external request to an appropriate service instance.

Spring Boot & Spring Cloud Netflix OSS – MicroService Architecture

Spring Boot - Microservice Architechture

Microservices with Spring Boot

Spring Boot is a brand new framework from the team at Pivotal, designed to simplify the bootstrapping and development of a new spring application. The framework takes an opinionated approach to configuration, freeing developers from the need to define the boilerplate configuration.

Microsoft Spring Boot

Spring Cloud Netflix

Spring Cloud Netflix provides Netflix OSS integrations for spring boot apps through autoconfiguration and binding to the spring environment and other spring programming models. With a few simple annotations, we can quickly enable and configure common patterns inside the application and build large distributed systems with Netflix components. There are a lot of features available with spring cloud Netflix. Here, we have listed some of the common features we have implemented with microservices with spring boot and Netflix,

Spring Cloud Netflix

You can view it on PDF, Please click here: www.optisolbusiness.com/Micro-Services-Architecture-Spring-Boot-and-Netflix-Infrastructure.pdf

Ramp Microservice Architech

To get further insights, talk to our experts at +1 415.233.4737 or reach us at info@optisolbusiness.com for free consulting.

Free Consulting