Comments (2)
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 againstBackend
.
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.
@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)
- Support unsigned 64-bit integers for sequence numbers HOT 2
- raw_decoder: panic occured message=slice index starts at 16 but ends at 13
- Decoder fails unexpectedly when reused
- How to send message to Acceptor?
- Compile errors HOT 1
- Fix website
- Fix GH Actions badge on the root README.md
- no method named `set_fv_with_key` found for struct `tagvalue::decoder::Message` in the current scope
- stdsimd feature removed HOT 1
- Some tag-value messages seem to break internal state of a `Decoder` on `fefix v0.7.0` HOT 4
- Parser panics when tag contains non-digit
- Parser panics when value of a length tag exceeds message
- `fefix::prelude::ConfigureJson` trait alias is not feature-gated in `develop` (as of `2eed72a`)
- `fefix::tagvalue::DecoderStreaming` appears to be practically broken at this point
- `StreamingDecoder::num_bytes_required()` semantical inconsistency HOT 1
- Spurious failures when decoding a message HOT 3
- Remove unused deps with `cargo +nightly udeps`
- RUSTSEC-2022-0004: Stack overflow in rustc_serialize when parsing deeply nested JSON
- RUSTSEC-2020-0071: Potential segfault in the time crate
- RUSTSEC-2021-0127: serde_cbor is unmaintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferrumfix.