edgetelemetrics/eventcorrelation
Composer 安装命令:
composer require edgetelemetrics/eventcorrelation
包简介
Event Stream correlation engine for PHP
README 文档
README
PHP Event Correlator is an event correlation tool to process a stream of events, make decisions based on Rules sets, and perform actions based on these Rules.
Event correlation is useful in many areas. For example, log processing, microservice coordination, IoT event processing.
PHP-EC is being used in production for multiple IoT projects, some processing 10M+ events per day from multiple disparate systems.
Requirements
The package is compatible with PHP 8.0+
Installation
You can add the library as project dependency using Composer:
composer require edgetelemetrics/eventcorrelation
Performance can be improved by installing optional PHP extensions (ext-libuv or ext-libev)
Examples
See /examples directory
Getting Started
TBC.
Components are:
-
Events: An event is made up of a type, date, id, and data
-
Event Stream: A time ordered stream of events
-
Input Processes: programs that provide event streams into PHP-EC. These can be PHP scripts, NodeJS, Bash script etc.
-
Actions: Programs that perform tasks when requested. This may be writing to a database, sending an email etc.
-
Rules: Rules define a set of events to be processed within a defined time period. Once a Rule is matched or a defined timeout period is exceeded the rule can:
- run Actions (for example send email, write to database)
- emit Events (emit a new or modified event for another Rule to handle [chaining rules])
- run an additional input process (load more data into the system)
Cron Like Rules
PHP-EC supports rules that can call actions based on Cron time expressions, system start and system shutdown.
License
MIT, see LICENSE file.
Contributing
Bug reports (and small patches) can be submitted via the issue tracker. Forking the repository and submitting a Pull Request is preferred for substantial patches.
edgetelemetrics/eventcorrelation 适用场景与选型建议
edgetelemetrics/eventcorrelation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.79k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「event」 「stream」 「php-ec」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 edgetelemetrics/eventcorrelation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 edgetelemetrics/eventcorrelation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 edgetelemetrics/eventcorrelation 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Object-Oriented API for PHP streams
Safely namespaced guzzle psr7 for WP2Static
Interface for a factory to create Psr\Http\Message\StreamInterface objects
Symfony bundle for broadway/broadway.
Implementation of webignition/stream-factory-interface
This is an Event Emitter equivalent to Node.js' Event Emitter.
统计信息
- 总下载量: 4.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-01