翻译Spring官网-Microservices

漆雕誉
2023-12-01

原址: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连接器,你也能轻松使用不同的后端服务。

 类似资料: