Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Order book synchronized #4733

Closed
wants to merge 13 commits into from

Conversation

rizer1980
Copy link
Contributor

Added OrderBook synchronization through the StampedLock mechanism, which is much faster and more flexible than usual Synhcronzed.
That gives us the opportunity to receive a full copy of the orderbook without a chance to get an Concurrent exception.

@rizer1980
Copy link
Contributor Author

bump

@rizer1980
Copy link
Contributor Author

ping

@timmolter
Copy link
Member

It's hard for me to tell if this PR works as designed in addition to not breaking things for someone relying on this.

@rizer1980
Copy link
Contributor Author

added concurrency tests.

  1. New way, in use StampedLock
  2. Old way, Stampdelock wrapped in Synchonized

@rizer1980 rizer1980 closed this May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants