psychic-octo-pancake is a producer-consumer application created as a homework
- Run
go run . --help
to see available commands - Run
docker-compose up
to run all dependencies such as RabbitMQ - Run
go run . server
to run a server. Application config will be created automatically in the running filder. - Run commands:
add "some-key" "some-value"
: add item to memory storeget "some-key"
: write "some-value" into a data-log file.get-all
: write all values into a data-log fileremove "some-key"
: delete "some-key" from the memory store
The application is well-configured out of the box.
By default it creates config file "config.toml" in a working directory and the file is ready to use with default configuration.
By default, data-file is stored in a working directory as well, but it can be changed in config.toml
amqp_queue = 'command_requests'
: client/server queue nameamqp_url = 'amqp://guest:guest@localhost:5672/'
: amqp 0.9 (RabbitMQ) urldata-file = 'data.log'
: path to a data-log file