GithubHelp home page GithubHelp logo

Comments (4)

mzheravin avatar mzheravin commented on May 22, 2024 1

Hi @buiminhhuy
Exception in the log - this is normal. There was a bug in Disruptor DSL. It creates more handlers than it should create. Fortunately there is protection preserves from starting same handlers second time, just throwing an exception without affecting rest of the code. My fix was merged, but new version of Disruptor was not released yet.

from exchange-core.

mzheravin avatar mzheravin commented on May 22, 2024 1

Sorry, I not sure I can understand your second question.

Some facts (assume symbols in exchange mode):
At risk-hold stage - whole order amount is gone from the account (-orderAmount).
For IoC order there is no any delay - one or more events (TRADE or REJECT) with same total volume are always created and attached to the same PlaceOrder message.
In risk-release stage user will get funds back (original or exchanged, or combination of them).
Result consumer handled in parallel with risk-release stage. So in theory user can submit second transaction after receiving positive result of first and then receive NSF (even he did not expect that) because risk release did not processed risk yet for first transaction. But in practice there is a threshold 10 microsecond (currently hardcoded) after which all pending risk release operations are flushed by first incoming command.

from exchange-core.

buiminhhuy avatar buiminhhuy commented on May 22, 2024

Yes @mzheravin, you understood my second question. Thanks you for answer. Maybe, I am using old version, or debuging. Your framework really awesome for me.

from exchange-core.

buiminhhuy avatar buiminhhuy commented on May 22, 2024

I pulled source LMAX Disruptor and run test cases pass this issue. Thanks @mzheravin.

from exchange-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.