Coder Social home page Coder Social logo

jsonhub's People

Contributors

aidenbell avatar

Watchers

 avatar  avatar

jsonhub's Issues

Support for named exchanges

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.

Remove OTT logging

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.

HTTP clients joining with the same subscription should all join the same ClientPool

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.

Named Exchange de-allocation

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)

Make Exchange interface friendlier

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.

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.