Indietro

#erlang

2 APIs con questa etichetta

Queueing Theory API

Queueing-theory maths as an API, computed locally and deterministically. The littles-law endpoint applies Little's law, L = λ·W — the average number in a system equals the arrival rate times the average time in the system — and solves for whichever of the three you leave out; it holds for any stable system, from a checkout line to a request pipeline. The mm1 endpoint gives the full steady-state metrics of a single-server M/M/1 queue from the arrival rate λ and the service rate μ: the utilization ρ = λ/μ, the average number in the system and in the queue, the average time in the system and waiting, and the probability the system is empty — and it flags an unstable queue when ρ ≥ 1. The mmc endpoint extends this to a multi-server M/M/c queue with the Erlang-C waiting probability, returning the offered load in erlangs, the per-server utilization, the chance an arrival has to wait, and the same length and time metrics. Rates must share a time unit, and the times come out in that unit. Everything is computed locally and deterministically, so it is instant and private. Ideal for capacity-planning and operations tools, call-centre and staffing apps, server and throughput sizing, and operations-research education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is queueing theory; for descriptive statistics on a list of numbers use a statistics API.

api.oanor.com/queue-api

Hex API

Elixir和Erlang包生态系统——Hex(hex.pm)——作为API。查找任何Hex包的描述、许可证、最新版本、GitHub/文档/更新日志链接、所有者以及下载次数(全部时间和近期);阅读包的完整发布历史及发布日期;获取单个版本的依赖列表、Elixir版本约束和构建工具;通过关键字搜索整个Hex注册表。涵盖Elixir/Erlang(BEAM)生态系统,从Phoenix、Ecto和Plug到Jason、Absinthe和Nerves。实时来自官方hex.pm API。适用于包仪表板、依赖和供应链工具、Elixir开发者门户和BEAM生态系统分析。来自Hex的开放数据。

api.oanor.com/hex-api