stock-service

时间:2024-03-26 02:13:58
【文件属性】:

文件名称:stock-service

文件大小:23KB

文件格式:ZIP

更新时间:2024-03-26 02:13:58

Go

股票服务 要求 编写2个服务以读取和处理数据 服务#1 Read the provided text "test3.txt" and broadcast line by line to Kafka as the message broker. 服务#2 Read the data from message broker summarize the data in a minutely fashion to find the hightest price and lowest price (per stock symbol) during that minute. 怎么跑 # Add kafka to your hosts sudo nano /etc/hosts 127.0.0.1 kafka # running docker compose docker-compose -f doc


【文件预览】:
stock-service-master
----models()
--------producer.go(465B)
--------consumer.go(2KB)
--------processor.go(2KB)
----cmd()
--------consumer()
--------producer()
----readme.md(658B)
----test3.txt(30KB)
----output.txt(23KB)
----common()
--------kafka.go(668B)
--------file.go(1KB)
----docker-compose.yml(519B)
----go.sum(8KB)
----types()
--------output.go(136B)
--------stock.go(197B)
----helper()
--------math.go(197B)
--------find.latest.index.go(339B)
--------output.to.string.go(313B)
----go.mod(74B)

网友评论