-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgrpc-virtual-threads.adoc.po
123 lines (107 loc) · 6.52 KB
/
grpc-virtual-threads.adoc.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2023-12-03 08:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. This guide is maintained in the main Quarkus repository
#. and pull requests should be submitted there:
#. https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc
#. type: Title =
#: _guides/grpc-virtual-threads.adoc
#, fuzzy, no-wrap
msgid "Quarkus Virtual Thread support for gRPC services"
msgstr "Soporte de Quarkus Virtual Thread para servicios gRPC"
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "This guide explains how to benefit from Java virtual threads when implementing a gRPC service."
msgstr "Esta guía explica cómo beneficiarse de los hilos virtuales de Java al implementar un servicio gRPC."
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid ""
"This guide focuses on using virtual threads with the gRPC extensions.\n"
"Please refer to xref:virtual-threads.adoc[Writing simpler reactive REST services with Quarkus Virtual Thread support]\n"
"to read more about Java virtual threads in general and the Quarkus Virtual Thread support."
msgstr "Esta guía se centra en el uso de hilos virtuales con las extensiones gRPC. Consulte xref:virtual-threads.adoc[Escribir servicios REST reactivos más sencillos con el] soporte de hilos virtuales de Quarkus para leer más sobre los hilos virtuales de Java en general y el soporte de hilos virtuales de Quarkus."
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid ""
"By default, the Quarkus gRPC extension invokes service methods on an event-loop thread.\n"
"See the xref:quarkus-reactive-architecture.adoc[Quarkus Reactive Architecture documentation] for further details on this topic.\n"
"But, you can also use the link:{blocking_annotation}[@Blocking] annotation to indicate that the service is _blocking_ and should be run on a worker thread."
msgstr "Por defecto, la extensión gRPC de Quarkus invoca métodos de servicio en un hilo de bucle de evento. Consulte la xref:quarkus-reactive-architecture.adoc[documentación de la Arquitectura Reactiva] de Quarkus para más detalles sobre este tema. Pero, también puede utilizar la anotación link:{blocking_annotation}[@Blocking] para indicar que el servicio está _bloqueando_ y debe ejecutarse en un hilo de trabajador."
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "The idea behind Quarkus Virtual Thread support for gRPC services is to offload the service method invocation on virtual threads, instead of running it on an event-loop thread or a worker thread."
msgstr "La idea detrás del soporte de Quarkus Virtual Thread para servicios gRPC es descargar la invocación del método de servicio en hilos virtuales, en lugar de ejecutarlo en un hilo de bucle de evento o un hilo de trabajador."
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid ""
"To enable virtual thread support on a service method, simply add the link:{runonvthread}[@RunOnVirtualThread] annotation to the method.\n"
"If the JDK is compatible (Java 19 or later versions - we recommend 21+) then the invocation will be offloaded to a new virtual thread.\n"
"It will then be possible to perform blocking operations without blocking the platform thread upon which the virtual thread is mounted."
msgstr "Para habilitar el soporte de hilos virtuales en un método de servicio, basta con añadir la anotación link:{runonvthread}[@RunOnVirtualThread] al método. Si el JDK es compatible (Java 19 o versiones posteriores - recomendamos 21+), la invocación se descargará en un nuevo hilo virtual. Entonces será posible realizar operaciones de bloqueo sin bloquear el hilo de la plataforma sobre el que está montado el hilo virtual."
#. type: Title ==
#: _guides/grpc-virtual-threads.adoc
#, fuzzy, no-wrap
msgid "Configuring gRPC services to use virtual threads"
msgstr "Configuración de los servicios gRPC para utilizar hilos virtuales"
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid ""
"Let's see an example of how to implement a gRPC service using virtual threads.\n"
"First, make sure to have the gRPC extension dependency in your build file:"
msgstr "Veamos un ejemplo de cómo implementar un servicio gRPC utilizando hilos virtuales. En primer lugar, asegúrese de tener la dependencia de la extensión gRPC en su archivo de compilación:"
#. type: Block title
#: _guides/grpc-virtual-threads.adoc
#, no-wrap
msgid "pom.xml"
msgstr "pom.xml"
#. type: Block title
#: _guides/grpc-virtual-threads.adoc
#, no-wrap
msgid "build.gradle"
msgstr "build.gradle"
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "You also need to make sure that you are using Java 19 or later (we recommend 21+), this can be enforced in your `pom.xml` file with the following:"
msgstr "También es necesario asegurarse de que está utilizando Java 19 o posterior, esto se puede aplicar en su archivo `pom.xml` con lo siguiente:"
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "Run your application with:"
msgstr "Ejecute su aplicación con:"
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "or to use the Quarkus Dev mode, insert the following to the `quarkus-maven-plugin` configuration:"
msgstr "o para utilizar el modo Quarkus Dev, inserte lo siguiente en la configuración de `quarkus-maven-plugin`:"
#. type: Plain text
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "Then you can start using the annotation `@RunOnVirtualThread` in your service implementation:"
msgstr "A continuación, puede empezar a utilizar la anotación `@RunOnVirtualThread` en la implementación de su servicio:"
#. type: Block title
#: _guides/grpc-virtual-threads.adoc
#, fuzzy, no-wrap
msgid "Limitations"
msgstr "Limitaciones"
#. type: delimited block =
#: _guides/grpc-virtual-threads.adoc
#, fuzzy
msgid "The gRPC methods receiving _streams_, such as a `Multi` cannot use `@RunOnVirtualThread`, as the method must not be blocking and produce its result (`Multi` or `Uni`) immediately."
msgstr "Los métodos gRPC que reciben _flujos_, como un `Multi` no pueden utilizar `@RunOnVirtualThread`, ya que el método no debe estar bloqueando y producir su resultado ( `Multi` o `Uni`) inmediatamente."