翻譯Spring官網-Microservices

原址:https://spring.io/microservices

  • Microservice architectures are the ‘new normal’. Building small, self-contained, ready to run applications can bring great flexibility and added resilience to your code. Spring Boot’s many purpose-built features make it easy to build and run your microservices in production at scale. And don’t forget, no microservice architecture is complete without Spring Cloud ‒ easing administration and boosting your fault-tolerance.

微服務架構是新常態。構建小的,自包含的,隨時可運行的應用,且爲你的代碼帶來靈活度和增加彈性。SpringBoot許多訂製的特色讓它容易來構建和運行生產環境中大規模的微服務。別忘記了,沒有SpringCloud的微服務構架是不完整的,它能簡化管理和提高你的容錯性。

  • What are microservices?

  • Microservices are a modern approach to software whereby application code is delivered in small, manageable pieces, independent of others.

什麼是微服務?

微服務是一種現代的軟件開發模式,由此應用程序的代碼可以小塊且分片管理來交付,且獨立於其他應用。

  • Why build microservices?

  • Their small scale and relative isolation can lead to many additional benefits, such as easier maintenance, improved productivity, greater fault tolerance, better business alignment, and more.

爲什麼要構建微服務?

微服務的小型規模和相對隔離能導致許多額外的利處,比如容易維護,提高生產效率,更高的容錯性,更好的業務協調等等。

  • Microservices with Spring Boot

  • With Spring Boot, your microservices can start small and iterate fast. That’s why it has become the de facto standard for Java™ microservices. Quickstart your project with Spring Initializr and then package as a JAR. With Spring Boot’s embedded server model, you’re ready to go in minutes.

用SpringBoot來做微服務

用SpringBoot,你的微服務能從小開始且快速迭代。這就是爲啥它能成爲事實上的java官方微服務標準。用Spring Initializr快速開始你的項目且打包成jar。用SpringBoot嵌入式服務模型,你會在幾分鐘內完成。

  • Microservice resilience with Spring Cloud

  • The distributed nature of microservices brings challenges. Spring helps you mitigate these. With several ready-to-run cloud patterns, Spring Cloud can help with service discovery, load-balancing, circuit-breaking, distributed tracing, and monitoring. It can even act as an API gateway.

SpringCloud的彈性微服務

微服務的分佈特性帶來了挑戰。Spring能幫助你減輕這些挑戰。用一些現成的雲模式,SpringCloud能幫你發現服務,負載均衡,熔斷,分佈式追蹤和監控。它甚至可以擔任API gateway的角色。

  • Build streaming data microservices with Spring Cloud Stream

  • Spring Cloud Stream makes it easy to consume and produce events, no matter which messaging platform you choose. Spring Cloud Stream connects your microservices with real-time messaging in just a few lines of code, to help you build highly scalable, event-driven systems.

用Spring Cloud Stream來構建微服務數據流

Spring Cloud Stream 能讓此更容易的消費和生產事件,無論你選擇的消息平臺式什麼。Spring Cloud Stream都能用幾行代碼來連接你的微服務和實時消息,並幫助你構建高擴展性,事件驅動的系統。

  • Manage your microservices

  • Spring Boot’s optional instrumentation framework, Micrometer, sends metrics straight to Prometheus, Atlas, and more to provide valuable insights. This is complemented by Spring Cloud’s Sleuth and Zipkin projects which offer distributed tracing so that you can follow along with what’s happening in real-time.

管理你的微服務

Spring Boot的可選檢測框架,Micrometer,直接將指標發生給Prometheus,Atlas 和提供更多有價值的見解。Sleuth和Zipkin projects(提供分佈式追蹤)讓它更完整,以便你可以實時跟蹤和了解發生了什麼。

  • Microservices on Cloud Foundry

  • The small, stateless nature of microservices makes them ideal for horizontal scaling. Platforms like TAS and PKS can provide scalable infrastructure to match, with and greatly reduce your administrative overhead. Using cloud connectors, you can also consume multiple backend services with ease.

上雲的微服務

爲了水平擴展,微服務的小型化和無狀態的特點讓它變得完美(另翻譯:微服務的小型化和無狀態的特點使他們成爲水平擴展最理想的選擇)。像TAS and PKS的平臺能提供可擴展的基礎架構來匹配,來極大的減少你的管理開銷。使用Cloud連接器,你也能輕鬆使用不同的後端服務。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章