Microservices Architecture – Spring Boot, Spring Cloud and Netflix OSS Infrastructure
What is "Microservices"?Patterns in Micro services Architecture
Microservices Architecture using Netflix Components :
We have used the Netflix components to accomplish the above microservices architecture patterns.
Major Components of Netflix :
- A suite of small services that use lightweight mechanism like REST to communicate with each other.
- These services are built around business capabilities and independently deployable by fully automated deployment machinery.
Why Micro Services Architecture?
We chose micro services architecture to write each functionality as a separate service for core and API functionality and it helps us to achieve the continuous delivery and integration.
Frameworks
There are couple of frameworks available in different software ecosystems that make it easy to create distributed applications using microservices architecture.- Java – Spring Cloud using Netflix OSS
- Node.js – Seneca
- The reference architecture developed by us builds on the Spring Cloud ecosystem.
- There are number of components available within the Spring Cloud and Netflix OSS ecosystem that solve common problems for distributed applications
(e.g. configuration management, service discovery, circuit breakers, intelligent routing etc).
Patterns in Micro Services Architecture :
- API Gateway
- Service Registry
- Service Discovery
API Gateway |
|
Service Registry |
|
Service Discovery |
|
Microservices Architecture using Netflix Components :
We have used the Netflix components to accomplish the above microservices architecture patterns.
Operations Component | Spring Cloud, 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 |
Circuit Breaker | Netflix Hystrix |
Monitoring | Netflix Hystrix Dashboard and Turbine |
Centralized Log Analysis | ELK (Elasticsearch,Logstash,Kibana) |
Major Components of Netflix :
Netflix Eureka – Service Discovery Server
Netflix Eureka allows micro services to register themselves at runtime as they appear in the system landscape.Netflix Ribbon – Dynamic Routing & Load Balancer
Netflix Ribbon can be used by service consumers to look up 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. Ribbon does not run as a separate service but instead as an embedded component in each service consumer.Netflix Zuul – Edge Server & API gatewayer
Zuul is (of course) our gatekeeper to the outside world, not allowing any unauthorized external requests pass through. Zulu also provides a well-known entry point to the micro services 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 – Micro Service Architecture
Micro Services 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 boilerplate configuration.Spring Cloud Netflix :
Spring cloud Netflix provides Netflix OSS integrations for spring boot apps through auto configuration 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 application and to build large distributed systems with Netflix components. There are lot of features available with spring cloud Netflix. Here, we have listed some of the common features we have implemented with micro services with spring boot and Netflix,Service Discovery |
|
Service Creation |
|
External Configuration |
|
Router and Filter |
|
No comments:
Post a Comment