Ma-rốcseuros/breaker_machines
Modern circuit breaker for Ruby & Rails. Thread-safe, fiber-ready async support. Built-in fallbacks, rich introspection, clean DSL. Memory-efficient with jitter & monitoring.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#1 Repository của tháng
🔧 Circuit breaker Ruby mạnh mẽ dành cho hệ thống phân tán
Triển khai mẫu Circuit Breaker dựa trên
state_machines, hỗ trợ đồng thời thread-safe, fiber async, fallback và giám sát toàn diện.
BreakerMachines là một thư viện circuit breaker hiện đại cho Ruby & Rails, được thiết kế để bảo vệ các hệ thống phân tán chống lại lỗi và quá tải. Dựa trên nền tảng state_machines, nó cung cấp các tính năng như quản lý trạng thái mạnh mẽ, hỗ trợ đồng thời an toàn cho cả thread và fiber, cùng với các cơ chế fallback tích hợp sẵn.
✨ Điểm nổi bật
- Thread-safe: Bảo vệ trạng thái mạnh mẽ trong môi trường đa luồng.
- Fiber-safe mode: Hỗ trợ hoạt động bất đồng bộ trên Ruby (Falcon, async gem).
- AsyncCircuit: Quản lý trạng thái bảo vệ bởi mutex cho các vận hành bất đồng bộ.
- Circuit Groups: Quản lý các circuit liên quan với phụ thuộc rõ ràng.
- Hedged requests: Giảm độ trễ bằng cách gửi yêu cầu trùng lặp.
- Multiple backends: Hỗ trợ chuyển đổi tự động giữa các backend.
- Bulkheading: Giới hạn số lượng yêu cầu đồng thời.
- Pluggable storage: Linh hoạt lưu trữ (Memory, Redis, Custom).
💡 Vì sao đáng chú ý
BreakerMachines nổi bật nhờ việc kết hợp mạnh mẽ giữa các tính năng đồng thời và quản lý trạng thái phức tạp. Không chỉ là một công cụ circuit breaker đơn thuần, nó còn cung cấp các mẫu nâng cao như Cascading Circuit Breakers và Coordinated State Management, giúp mô hình hóa rõ ràng các phụ thuộc hệ thống. Đặc biệt, sự hỗ trợ đa nền tảng (MRI, JRuby, TruffleRuby) và tích hợp ActiveSupport::Notifications giúp dễ dàng theo dõi và giám sát hiệu suất trong môi trường sản phẩm thực.
#CircuitBreaker #Ruby #Microservices #FaultTolerance #HighAvailability #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Full-stack observability · Metrics · Logs · Traces · Flows · Topology · Infrastructure · APM · NPM · DBM · RUM · Synthetics · Cloud · AI SRE · OpenTelemetry · SNMP · NetFlow/IPFIX/sFlow · IPMI · Redfish · 2000+ integrations
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
The execution control plane for AI agents. Govern every model request, MCP tool call, A2A delegation, and downstream action—while keeping your native protocols intact: six native LLM protocols in, six native LLM protocols out.
Multi-uplink failover and load balancing for Linux routers: nftables, policy routing, IPv4 and IPv6.
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
🪢 Open source AI engineering platform: AI Gateway, agent observability, evals, and prompt/skill management, built on OpenTelemetry. One open platform for every AI call and every agent. Self-host or use Langfuse Cloud.
SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
A powerful flow control component enabling reliability, resilience and monitoring for microservices. (面向云原生微服务的高可用流控防护组件)