This repository contains a stock consumer application written in Go. It reads stock price messages from a RabbitMQ queue, calculates the average price, and stores it in a MongoDB database.
For more details, please check our GitHub repository.
QUEUE_NAME: The Name of the Trasnaction Company (default Microsoft (MSFT), Tesla (TSLA), and Apple (AAPL))
MESSAGE_GROUP_SIZE: The Parallel Queue amount wich is grouped for effencity (no default)
RABBITMQ_URL: The MQTT URL for reaching the Rabbit MQTT (no defualt)
MONGODB_URL: The URL which the consumer can reach the MongoDB (no default)
To build and run the application, use the following commands:
docker run -e RABBITMQ_URL=your_rabbitmq_url -e MONGODB_URL=your_mongodb_url -e QUEUE_NAME=your_queue_name ditfedi1/stock-consumer
Content type
Image
Digest
sha256:c2ea6e6e5…
Size
6.3 MB
Last updated
over 2 years ago
docker pull ditfedi1/stock-consumer