Haskell NSQ protocol parser
pharaun / hsnsq Goto Github PK
View Code? Open in Web Editor NEWHaskell NSQ protocol parser
License: Apache License 2.0
Haskell NSQ protocol parser
License: Apache License 2.0
We want to identify what the performance curves are for nsq so that we can decide if we should use it as a way to stream assets to the client or not.
The basic idea here is to have the standard two dimension benchmark in which:
Then in each message upon sending we will record the following 3 items:
Then upon reception we will record the time the message was received, and record the send-time and sequal id to a csv/logfile for further analysis.
Should be able to make a binary that provides us with a few options such as send rate, message size, and so on for the initial benchmark effort. Binary provided options:
We currently don't have anything beyond the example program included.
Should probably implement:
Basically opening this ticket to track the feature/approach for the client.
Not sure if we need two threads, may need for concurrent PUB/MPUB support but for now most of the send ops can probably be done immediately. But anyway should have one thread that recieves messages and deals with heartbeat and all of that configuration stuff, then it pumps it into a queue in which it can monitor the high-water mark and adjust the RDY level for the client.
Then this should allow the library user to decide how they want to deal with the messages while letting the client deal with rdy, heartbeats, and all background stuff.
references:
http://www.yesodweb.com/blog/2014/03/network-conduit-async
https://github.com/informatikr/hedis
http://chimera.labs.oreilly.com/books/1230000000929/pt01.html
Currently the clientlib pre-auth for a hardcoded subscription.
Need to fix it up so that its optional to subscript if you want to listen otherwise don't.
http://hackage.haskell.org/package/hsnsq-0.1.0.0
The library is finally on hackage, but its still in alpha quality stage, need to fix the following issues so far:
we want to have the benchmarking stuff separate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.