minreiseah / doofin

Backtester for trading strategies.
4 stars 0 forks source link

Create the pub/sub mechanisms (RabbitMQ) #4

Closed minreiseah closed 1 year ago

chengjunyuan commented 1 year ago

I've figured out how to publish messages, but I have no idea how to receive messages. Am using the amqprs crate for Rust.

chengjunyuan commented 1 year ago

Update: I figured it out. Use basic_get instead of basic_consume, and keep asking ChatGPT. The lapin crate on Rust is much older and ChatGPT knows how to use it, thankfully amqprs is basically a carbon copy of lapin in terms of functionality (but it promises to be faster, whatever that means), so asking ChatGPT how to do things with lapin provides a very helpful quickstart if you don't want to read a million pages of documentation for AMPQ systems.