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

Optimization: set subscriber thread up before connecting #23

Closed
sharpe5 opened this issue Feb 13, 2016 · 2 comments
Closed

Optimization: set subscriber thread up before connecting #23

sharpe5 opened this issue Feb 13, 2016 · 2 comments

Comments

@sharpe5
Copy link
Member

sharpe5 commented Feb 13, 2016

Currently, the codebase passes all of its tests and works reliably for me.

However, if we wanted to eliminate the 500ms delay on subscription instantion, we could potentially do this by ensuring that the subscriber thread is up and running before connecting.

@somdoron
Copy link
Contributor

You can also consider not using the pub sub pattern. Router dealer with
kind of login handshake. Also every new subscriber gets all history
messages?
On Feb 13, 2016 13:23, "sharpe5" [email protected] wrote:

Currently, the codebase passes all of its tests and works reliably for me.

However, if we wanted to eliminate the 500ms delay on subscription
instantion, we could potentially do this by ensuring that the subscriber
thread is up and running before connecting.


Reply to this email directly or view it on GitHub
#23.

@sharpe5
Copy link
Member Author

sharpe5 commented Feb 13, 2016

I absolutely agree. This is the direction the design is heading in, see issues #7 and #12.

There are two broad aims for this library:
1). A simple API.
2). It just works.

Currently, 1) is looking good, but 2) is not quite there. The main problems are:
a) The subscriber might miss messages if it connects after the publisher has published some items;
b) We have to have a separate port and TCP/IP connection for every new ISubject of T.

Once we address these, the library will be a lot closer to "just working". There are a few other enhancements such as MsgPack support and a dynamic/floating daemon, but these can be handled later.

I've had a lot of experiencing writing C# wrappers over Tibco, and the aim is to eliminate all of the sloth dung that Tibco tends to shovel at its developers.

@sharpe5 sharpe5 closed this as completed Feb 13, 2016
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

No branches or pull requests

2 participants