aidenbell / jsonhub Goto Github PK
View Code? Open in Web Editor NEWA publish/subscribe message queue with JSON pattern matching subscription
A publish/subscribe message queue with JSON pattern matching subscription
As title, more docs are required but I want to keep it lean. Ideally, within the readme.
The logging is pretty basic and doesn't have any log levels currently. There's lots of debugging printf style logging in there too ... this wants a tidy up and a command-line option for turning on various log levels.
The named exchange map needs replacing with Concurrent Map or some other concurrency safe map implementation.
Currently there is a single exchange created on boot and mounted at the root URL of the server. It'd be good to allow any number of named exchanges, creating many independent hubs for exchanging messages over. These could be setup at a "hubs" endpoint:
/hubs/my-exchange/
/hubs/my-other-exchange/
The test client and any future admin interfaces can then also be moved to more sensible URLs.
Comments in the source look a bit grim when used to godoc, they need a tidy up
jsonhubd allocates new named exchanges when they are requested in a map, but when all clients leave an exhange (or its sub tree of subscribers) there is no way to cleanup. This means that you could request billions of unique exchanges and fill memory (albeit slowly)
The Exchange and Queue types (and Exchanger) are pretty much the same interface but with different implementations. Making them adhere to the same interface makes things more flexible.
As title, currently we always create a new ClientPool for clients joining with the same subscription. In order to allow some more interesting subscription structures, we should assign identical subscriptions the to the same pool.
Later this will allow us to specify the distribution type, and allow load balancing across like-clients for example.
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.