Giter Club home page Giter Club logo

Comments (2)

neysofu avatar neysofu commented on May 30, 2024 1

Hi! Thank you for reading through the code and providing feedback!

I decided to momentarily remove fefix::session::FixConnection because it's not ready yet. Mind you, it's the single feature I'm most dedicated to, so it'll be back in some future version once I've made some progress. Before 0.7.0, FixConnection was always there yet broken and I think it's better to be more direct in showing my users what I consider to be ready to use and what is not. This is also the reason why some examples using it may be momentarily commented out!

As for async_trait - you're right, it would be so much simpler. Unfortunately, it costs one allocation per function call which is quite expensive. For the foreseeable future, the Backend / Application type (I haven't settled on a name yet) will not be async and users will have to either use a thread pool or e.g. explicitly enter a Tokio Runtime. It's a bit annoying, but it'll work and it will flexible enough for almost any use case.

Long term, we want to provide a middleware API so that users can build abstractions on top of Backend. Some examples might be:

  • Log all incoming and outgoing messages.
  • Store all messages in a DB.
  • Add some FIX field in the header of all outgoing messages, before they're sent out.
  • Build your application against an AsyncBackend wrapper, rather than directly against Backend.

The specific pattern via channels that you mentioned will be possible!

Thank you for offering to help! I don't think I'll be able to accept contributions to the core at the moment (it takes a lot of energy and things are mature enough yet), but our documentation could definitely use some help. You can try to build docs on your machine with RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --open. You'll get warnings about missing documentation items and you can start from there. You can get a sense of what kind of writing style I'm going for by looking at what I've written so far.

from ferrumfix.

DonghunLouisLee avatar DonghunLouisLee commented on May 30, 2024

@neysofu Sounds all good. This project definitely has a lot of potentials and I cannot wait to see how great this can become. In the meantime, since I'm currently looking for a ready-to-use library for FIX engines, I'll use https://github.com/jbendig/fix-rs for a simple poc product I'm working on. Hopefully, this project becomes production ready so that I'll be able to swith FIX library to this in the near future.

Thanks again for staring on this project.

from ferrumfix.

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.