翻譯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一類的消息平臺支持響應式訪問。

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