Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for manager (0.19 sec)

  1. docs/en/docs/deployment/concepts.md

    ### Multiple Processes - An Example
    
    In this example, there's a **Manager Process** that starts and controls two **Worker Processes**.
    
    This Manager Process would probably be the one listening on the **port** in the IP. And it would transmit all the communication to the worker processes.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  2. docs/ru/docs/deployment/concepts.md

    * HAProxy
        * С дополнительным компонентом типа Certbot для обновления сертификатов
    * Kubernetes с Ingress Controller похожим на Nginx
        * С дополнительным компонентом типа cert-manager для обновления сертификатов
    * Использование услуг облачного провайдера (читайте ниже 👇)
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In recent versions of Python, there's also an **async context manager**. You would use it with `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  4. docs/en/docs/deployment/server-workers.md

    But Gunicorn supports working as a **process manager** and allowing users to tell it which specific **worker process class** to use. Then Gunicorn would start one or more **worker processes** using that class.
    
    And **Uvicorn** has a **Gunicorn-compatible worker class**.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    Underneath, the `open("./somefile.txt")` creates an object that is called a "Context Manager".
    
    When the `with` block finishes, it makes sure to close the file, even if there were exceptions.
    
    When you create a dependency with `yield`, **FastAPI** will internally create a context manager for it, and combine it with some other related tools.
    
    ### Using context managers in dependencies with `yield`
    
    !!! warning
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. docs/ja/docs/deployment/concepts.md

        * 証明書の更新を自動的に処理 ✨
    * Caddy
        * 証明書の更新を自動的に処理 ✨
    * Nginx
        * 証明書更新のためにCertbotのような外部コンポーネントを使用
    * HAProxy
        * 証明書更新のためにCertbotのような外部コンポーネントを使用
    * Nginx のような Ingress Controller を持つ Kubernetes
        * 証明書の更新に cert-manager のような外部コンポーネントを使用
    * クラウド・プロバイダーがサービスの一部として内部的に処理(下記を参照👇)
    
    もう1つの選択肢は、HTTPSのセットアップを含んだより多くの作業を行う**クラウド・サービス**を利用することです。 このサービスには制限があったり、料金が高くなったりする可能性があります。しかしその場合、TLS Termination Proxyを自分でセットアップする必要はないです。
    
    次の章で具体例をいくつか紹介します。
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  7. docs/de/docs/deployment/concepts.md

    ### Mehrere Prozesse – Ein Beispiel
    
    Im folgenden Beispiel gibt es einen **Manager-Prozess**, welcher zwei **Workerprozesse** startet und steuert.
    
    Dieser Manager-Prozess wäre wahrscheinlich derjenige, welcher der IP am **Port** lauscht. Und er würde die gesamte Kommunikation an die Workerprozesse weiterleiten.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:16:25 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  8. docs/en/docs/deployment/docker.md

    So, in this case, you **would not** want to have a process manager like Gunicorn with Uvicorn workers, or Uvicorn using its own Uvicorn workers. You would want to have just a **single Uvicorn process** per container (but probably multiple containers).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    # Abhängigkeiten mit yield
    
    FastAPI unterstützt Abhängigkeiten, die nach Abschluss einige <abbr title="Manchmal auch genannt „Exit Code“, „Cleanup Code“, „Teardown Code“, „Closing Code“, „Kontext Manager Exit Code“, usw.">zusätzliche Schritte ausführen</abbr>.
    
    Verwenden Sie dazu `yield` statt `return` und schreiben Sie die zusätzlichen Schritte / den zusätzlichen Code danach.
    
    !!! tip "Tipp"
        Stellen Sie sicher, dass Sie `yield` nur einmal pro Abhängigkeit verwenden.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:10:29 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/custom-request-and-route.md

    # 自定义请求与 APIRoute 类
    
    有时,我们要覆盖 `Request` 与 `APIRoute` 类使用的逻辑。
    
    尤其是中间件里的逻辑。
    
    例如,在应用处理请求体前,预先读取或操控请求体。
    
    !!! danger "危险"
    
        本章内容**较难**。
    
        **FastAPI** 新手可跳过本章。
    
    ## 用例
    
    常见用例如下:
    
    * 把 <a href="https://msgpack.org/index.html" class="external-link" target="_blank">`msgpack`</a> 等非 JSON 请求体转换为 JSON
    * 解压 gzip 压缩的请求体
    * 自动记录所有请求体的日志
    
    ## 处理自定义请求体编码
    
    下面学习如何使用自定义 `Request` 子类压缩 gizp 请求。
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:45:40 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top