Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
zarnoevic committed Mar 6, 2024
1 parent 3975650 commit dd66b73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ The server is a consumer service that listens to a queue and processes the messa
The client is a producer service that sends messages to the queue.
Each message is of a predefined format and denotes a task over an ordered mapping, whose state is kept, accessed, and updated by the server.

## Results

On a local Macbook Pro with 16GB of RAM and an M1 chip, the processing of 100,000 commands took `6.46` seconds, with both
the client and the server instances running on the same machine, with the settings as provided in the `example.env` file.
This is from the moment the first record is read from the CSV file on the client until the moment the last record is read from the
RabbitMQ and processed by the server.

## Specification

![img.png](img.png)
Expand Down
4 changes: 3 additions & 1 deletion example.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ RABBITMQ_AMQP_HOST=127.0.0.1
RABBITMQ_AMQP_PORT=5672
RABBITMQ_UI_PORT=15672

COMMANDS_PATH=resources/commands.csv
COMMANDS_PATH=resources/commands100k.csv

SERVER_WORKERS=100

0 comments on commit dd66b73

Please sign in to comment.