翻译Spring-Reactive

  • Reactive systems have certain characteristics that make them ideal for low-latency, high-throughput workloads. Project Reactor and the Spring portfolio work together to enable developers to build enterprise-grade reactive systems that are responsive, resilient, elastic, and message-driven.

响应式系统的某些特色使它成为低延迟,高吞吐工作器的理想选择。响应式系统和Spring一起工作能让开发者构建响应式的,弹性的,伸缩性和消息驱动的企业级响应式系统。

  • What is reactive processing?
  • Reactive processing is a paradigm that enables developers build non-blocking, asynchronous applications that can handle back-pressure (flow control).

什么是响应式处理?

响应式处理是一种能让开发者构建无阻塞,异步的,能控制背压应用的范例。

  • Why use reactive processing?

  • Reactive systems better utilize modern processors. Also, the inclusion of back-pressure in reactive programming ensures better resilience between decoupled components.

为什么要使用响应式处理?

响应式系统能更好的利用现代处理器。此外,在响应式程序设计中中包含背压,在解耦式组件中的确有着更好的弹性。

  • Project Reactor
  • Project Reactor is a fully non-blocking foundation with back-pressure support included. It’s the foundation of the reactive stack in the Spring ecosystem and is featured in projects such as Spring WebFlux, Spring Data, and Spring Cloud Gateway.

项目反应器

Project Reactor是一种完全的非阻塞的包含背压支持的基础。它是Spring生态中响应栈的基础,而且也是作为Spring WebFlux, Spring Data, and Spring Cloud Gateway的一个特色。

  • Reactive Microservices
  • One of the main reasons developers move from blocking to non-blocking code is efficiency. Reactive code does more work with fewer resources. Project Reactor and Spring WebFlux let developers take advantage of multi-core, next-generation processors—handling potentially massive numbers of concurrent connections. With reactive processing, you can satisfy more concurrent users with fewer microservice instances.

响应式微服务

开发者从阻塞到非阻塞代码开发的主要原因之一是效率。响应式代码能使用更少的资源来工作。Project Reactor 和 Spring WebFlux能让开发者发挥多核心及下一代能处理大量并发连接处理器的优势。在响应式反应下,你能用更少的微服务实例来满足更多的并发用户。

  • Reactive Microservices With Spring Boot
  • The Spring portfolio provides two parallel stacks. One is based on a Servlet API with Spring MVC and Spring Data constructs. The other is a fully reactive stack that takes advantage of Spring WebFlux and Spring Data’s reactive repositories. In both cases, Spring Security has you covered with native support for both stacks.

Spring Boot的响应式微服务

The Spring全家桶提供两种并行的方式。其中之一是基于Servlet API的Spring MVC and Spring Data 框架。另一个是利用Spring WebFlux and Spring Data的响应式存储库的完全反应式堆栈。在这两个例子中,Spring Security都能为这两种方法提供本地支持。

  • Integration with common technologies
  • Accessing and processing data in a reactive way is important. MongoDB, Redis, and Cassandra all have native reactive support in Spring Data. Many relational databases (Postgres, Microsoft SQL Server, MySQL, H2, and Google Spanner) have reactive support via R2DBC. In the world of messaging, Spring Cloud Stream also supports reactive access to platforms like RabbitMQ and Kafka.

整合通用技术

以响应式来访问和处理数据是很重要的。MongoDB, Redis, and Cassandra都能获得Spring Data的本地响应式支持。许多的关系型数据库(Postgres, Microsoft SQL Server, MySQL, H2, and Google Spanner)通过R2DBC获取响应式支持。在消息中间件领域,Spring Cloud Stream也能够为RabbitMQ and Kafka一类的消息平台支持响应式访问。

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