日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > javascript >内容正文

javascript

Microservices Reference Architecture - with Spring Boot, Spring Cloud and Netflix OSS--转

發布時間:2025/4/5 javascript 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Microservices Reference Architecture - with Spring Boot, Spring Cloud and Netflix OSS--转 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

原文地址:https://www.linkedin.com/pulse/microservices-reference-architecture-spring-boot-cloud-anil-allewar

What is "Microservices"?

Microservices is the "new kid" on the block; a new paradigm that seeks to replace monolithic enterprise applications with 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.

The crux of microservices can be epitomized by this illustration?as defined byMartin Fowler.

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).

    Target Architecture and Components

    The application consists of 8 different services that are available in?Synerzip GitHub repository.

    ?

  • config-server?- setup external configuration
  • webservice-registry?- Eureka server
  • auth-server?- OAuth2 authorization server
  • user-webservice?- User microservice
  • task-webservice?- Task microservice
  • comments-webservice?- Comments for task microservice
  • api-gateway?- API gateway that proxies all the microservices
  • web-portal?- Single Page Application that provides the UI
  • ?

    All the different services lend themselves to the following target architecture.

    ?

    While there are existing samples available for using the different Spring cloud/Netflix OSS components, we did not find anything that merged all of them together to provide an enterprise architecture. Additionally the documentation is sporadic and widely distributed so it becomes hard to understand how the components interact with each other.

    ?

    This reference architecture can be used as a starting point to understand the Microservices paradigm and then expand to scale to your architecture needs.

    Considerations for building production-ready systems

    ?

    The?thought process for?the reference architecture revolved around 2 concepts

  • Making it easy enough so that beginners can understand
  • Making it complete enough so that it can serve as the starting point of enterprise applications.
  • ?

    When you are ready to build your application with this reference architecture, keep the following things in mind

    ?

  • The application uses an endpoint to check if the user is authenticated; this leads to a very chatty application. When building your system instead use the Json Web Token (JWT)?wherein the token itself contains enough information for the resource server to do simple user authentication.
  • The Single Page Application that provides the UI is part of the reference architecture, whereas applications might be better off having the SPA as separate application that just needs to interact with your distributed system and not be part of the distributed system.
  • There are additional Netflix OSS components like Turbine, Feign and SideCar that might be applicable to your architecture.
  • Codebase

  • https://github.com/Synerzip/spring-boot-microservices
  • https://github.com/anilallewar/sample-config?
  • 轉載于:https://www.cnblogs.com/davidwang456/p/5544662.html

    《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

    總結

    以上是生活随笔為你收集整理的Microservices Reference Architecture - with Spring Boot, Spring Cloud and Netflix OSS--转的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。