{"id":13504421,"url":"https://github.com/roma-glushko/hyx","last_synced_at":"2025-10-03T21:52:57.661Z","repository":{"id":64497925,"uuid":"576220365","full_name":"roma-glushko/hyx","owner":"roma-glushko","description":"🧘‍♀️ Lightweight fault tolerant primitives for your modern asyncio Python microservices","archived":false,"fork":false,"pushed_at":"2023-12-10T17:26:41.000Z","size":242,"stargazers_count":82,"open_issues_count":27,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-17T14:51:24.203Z","etag":null,"topics":["asyncio","chaos-engineering","circuit-breaker","distributed-systems","high-availability","python3","resilience","stability-patterns"],"latest_commit_sha":null,"homepage":"https://hyx.readthedocs.io/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roma-glushko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-09T09:45:38.000Z","updated_at":"2025-06-17T15:45:18.000Z","dependencies_parsed_at":"2023-02-14T01:30:34.055Z","dependency_job_id":"b266a8f8-e97d-4372-99ad-baa527a45d31","html_url":"https://github.com/roma-glushko/hyx","commit_stats":{"total_commits":55,"total_committers":1,"mean_commits":55.0,"dds":0.0,"last_synced_commit":"359e0b33e64c50e12ec244db77f4ff2e26d84e41"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/roma-glushko/hyx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fhyx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fhyx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fhyx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fhyx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roma-glushko","download_url":"https://codeload.github.com/roma-glushko/hyx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fhyx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982207,"owners_count":24679449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","chaos-engineering","circuit-breaker","distributed-systems","high-availability","python3","resilience","stability-patterns"],"created_at":"2024-08-01T00:00:37.385Z","updated_at":"2025-10-03T21:52:52.622Z","avatar_url":"https://github.com/roma-glushko.png","language":"Python","funding_links":[],"categories":["Components","Open Source"],"sub_categories":["Vectors","Frameworks"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg loading=\"lazy\" src=\"https://raw.githubusercontent.com/roma-glushko/hyx/main/img/hyx-logo.png\" alt=\"Hyx\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003e🧘‍♂️️Lightweight fault tolerance primitives for your resilient and modern Python microservices\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pypi.org/project/hyx\" target=\"_blank\"\u003e\n    \u003cimg loading=\"lazy\" src=\"https://img.shields.io/pypi/v/hyx?color=%2318afba\u0026label=pypi%20package\" alt=\"Package Version\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/hyx\" target=\"_blank\"\u003e\n    \u003cimg loading=\"lazy\" src=\"https://img.shields.io/pypi/dm/hyx?color=%2318afba\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/hyx\" target=\"_blank\"\u003e\n  \u003cimg loading=\"lazy\" src=\"https://img.shields.io/pypi/pyversions/hyx.svg?color=%2318afba\" alt=\"Supported Python Versions\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://discord.gg/EUt2P9jrU7\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/1124268798699118633?label=discord\"\u003e\n\u003c/a\u003e\n\n\u003cbr/\u003e\n\n\u003ca href=\"https://hyx.readthedocs.io/en/latest/?badge=latest\"\u003e\n    \u003cimg loading=\"lazy\" src=\"https://readthedocs.org/projects/hyx/badge/?version=latest\u0026color=%2318afba\" alt='Documentation Status' /\u003e\n\u003c/a\u003e\n  \n\u003ca href=\"https://github.com/roma-glushko/hyx/actions/workflows/tests.yml\"\u003e\n    \u003cimg loading=\"lazy\" src=\"https://github.com/roma-glushko/hyx/actions/workflows/tests.yml/badge.svg?branch=main\" alt='Test Status' /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://app.codecov.io/github/roma-glushko/hyx\"\u003e\n    \u003cimg loading=\"lazy\" src=\"https://img.shields.io/codecov/c/gh/roma-glushko/hyx\" alt=\"Coverage\" /\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\n---\n\n**Hyx** (/ˈhʌɪx/) is a set of well-known stability patterns that are commonly needed\nwhen you build [microservice-based](https://en.wikipedia.org/wiki/Microservices) applications.\nHyx is meant to be [Hystrix (Java)](https://github.com/Netflix/Hystrix), [resilience4j (Java)](https://github.com/resilience4j/resilience4j) or [Polly (C#)](https://github.com/App-vNext/Polly) but for the Python world.\n\n## Key Features\n\n- Implements five commonly used resiliency patterns with various configurations based on advice and experience of industry leaders (e.g. AWS, Google, Netflix)\n- Idiomatic Pythonic implementation based on [decorators](https://realpython.com/primer-on-python-decorators) and [context managers](https://realpython.com/python-with-statement)\n- [AsyncIO](https://docs.python.org/3/library/asyncio.html) Native Implementation\n- Lightweight. Readable Codebase. High Test Coverage\n\n## Requirements\n\n- Python 3.9+\n- AsyncIO-powered applications ([no sync support?](https://hyx.readthedocs.io/en/latest/faq/#no-sync-support))\n\n## Installation\n\nHyx can be installed from [PyPi](https://pypi.org/project/hyx):\n\n``` sh\npip install hyx\n\n# or via poetry\npoetry add hyx\n```\n\n## Component Map\n| Component         | Problem                                                                                                                                                                            | Solution                                                                                                                                                                      | Implemented? |\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|\n| 🔁 Retry           | The failures happen sometimes, but they self-recover after a short time                                                                                                            | Automatically retry operation on temporary failures                                                                                                                           | ✅            |\n| 💾 Cache           |                                                                                                                                                                                    |                                                                                                                                                                               |              |\n| ⚡️ Circuit Breaker | When downstream microservices have got overloaded, sending even more load can make the situation only worse.                                                                       | Stop doing requests to your failing microservice temporarily if amount of errors exceeded expected thresholds. Then see if the given time helped the microservice to recover  | ✅            |\n| ⏱ Timeout         | Sometimes operations may take too much time. We cannot wait that long or after that time the success is unlikely                                                                   | Bound waiting to a reasonable amount of time                                                                                                                                  | ✅            |\n| 🚰 Bulkhead        | If executed without control, some code can take too much resources and put down the whole application (and upstream services) or cause slowness of other places of the application | Fix the amount of calls to the code, queue other calls and fail calls that goes beyond your capacity                                                                          | ✅            |\n| 🏃‍♂️ Rate Limiter   | The microservice can be requested with any rate even one that can put it down if happens by accident                                                                               | Limit the rate your system can be accessed by                                                                                                                                 | ✅            |\n| 🤝 Fallback        | Nothing can guarantee you that your dependencies will work. What would you do when it's failing?                                                                                   | Degrade gracefully by defining some default values or placeholders if your dependencies are down                                                                              | ✅            |\n\n\u003cp align=\"right\"\u003e\nInspired by \u003ca href=\"https://github.com/App-vNext/Polly#resilience-policies\" target=\"_blank\"\u003ePolly's Resiliency Policies\u003c/a\u003e\n\u003c/p\u003e\n\n## Acknowledgements\n\n- [resilience4j/resilience4j](https://github.com/resilience4j/resilience4j)\n- [Netflix/Hystrix](https://github.com/Netflix/Hystrix)\n- [slok/goresilience](https://github.com/slok/goresilience)\n- [App-vNext/Polly](https://github.com/App-vNext/Polly)\n- [Diplomatiq/resily](https://github.com/Diplomatiq/resily)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froma-glushko%2Fhyx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froma-glushko%2Fhyx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froma-glushko%2Fhyx/lists"}