【文件属性】:
文件名称:topshothawk:NBA Top Shot交易收集器
文件大小:49KB
文件格式:ZIP
更新时间:2021-03-08 05:51:41
HCL
Topshothawk
微服务,用于从 收集交易和时刻数据。 打算将此数据用于...某物。
总目录
:以下服务的代码:
侦听器:侦听新块,并通过Redis向提取程序发出请求。
提取程序:使用特定事件类型(例如Market.MomentPurchased )调用; 将块弹出Redis,并在块中提取上述类型的事件,直至达到特定高度。
记录器:将时刻和事件写入Postgres。
:我为维护Postgres数据库架构而编写的粗糙Ruby应用程序。 在云中。
:用于生成上述服务的配置,以及Redis / Postgres / etc。 在AWS中使用私有VPC中的ECS,EC2,RDS,Elasticache等可以通过堡垒访问SSH。
安装
所有服务。 唯一的安装步骤是克隆存储库并构建数据库:
git clone git@github.com:nporteschaikin/tops
【文件预览】:
topshothawk-master
----LICENSE.md(1KB)
----.env(315B)
----infrastructure()
--------.gitignore(31B)
--------main.tf(5KB)
--------modules()
----docker-compose.yml(2KB)
----.github()
--------workflows()
----README.md(1KB)
----migrator()
--------Dockerfile(195B)
--------bin()
--------db()
--------lib()
--------Gemfile(74B)
--------Gemfile.lock(0B)
----consumer()
--------.gitignore(13B)
--------Dockerfile(128B)
--------package.json(249B)
--------package-lock.json(47KB)
--------src()
--------bin()