Shopify/semian
:monkey: Resiliency toolkit for Ruby for failing fast observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 94
- Release rhythm 69
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 7
- age_days: 4362
- days_rel: 205
- days_push: 36
- n_releases_24m: 16
Adoption not part of the score
1484 stars · 87 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Semian is a Ruby resiliency library that prevents cascading failures when accessing slow or unresponsive external services like databases and HTTP APIs. It implements circuit breaker and bulkhead patterns (using SysV semaphores) to fail fast instead of blocking workers on timeouts.
Use cases
- prevent cascading failures from slow redis or mysql in a rails app
- add circuit breaker to external http service calls in ruby
- limit concurrent connections to a slow downstream resource
- fail fast when a dependency is unresponsive instead of waiting for timeouts
- protect ruby workers from being exhausted by slow database queries
- build resilient ruby applications with bulkheads
When to choose
- you run a multi-threaded Ruby app (e.g. Rails, Sidekiq) calling databases, Redis, or HTTP services
- you need server-wide concurrency control via SysV semaphores
- you want battle-tested resiliency patterns from Shopify production since 2014
When to avoid
- you are not using Ruby
- your app is single-threaded or event-driven where blocking is not an issue
- you need resiliency patterns in other languages or non-supported adapters
Facets
library · maturity stable
caching middleware error-handling concurrency backend web-development developer-tools microservices performance ruby circuit-breaker bulkhead resiliency fail-fast ruby-gem netflix-hystrix-inspired linux macos
1 source
- readme: https://github.com/Shopify/semian · fetched 2026-08-28 · e7e9fe6e6170
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Shopify/semian | main | 86 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem