Skip to content

Make multiple strategies share orderbook cache #1565

Answered by cjdsellers
HeidXC asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @VeraLyu

The current setup is that there is a single cache per running trader instance (process). So all of your strategies will share this cache, including an order book per instrument, and all of the execution state.

If you're taking this one level of abstraction higher, and considering many trader nodes sharing a single Redis instance/cluster (a valid setup), then yes right now all of the keys are separated per trader - so some data is duplicated (instruments, currencies), although this is a small amount relatively and avoids logical issues of many writers and readers to the Redis cache.

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HeidXC
Comment options

Answer selected by cjdsellers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants