Coder Social home page Coder Social logo

HWM support about axon HOT 4 CLOSED

tj avatar tj commented on May 23, 2024
HWM support

from axon.

Comments (4)

gjohnson avatar gjohnson commented on May 23, 2024

Kinda playing off that and whats going on in #20, might be nifty to pass the "identity" to the event and also emit an event (or have a plugin api) when a previously "identified" socket comes back online.

That would basically give us a durable socket implementation with out having to write one lol.

from axon.

tj avatar tj commented on May 23, 2024

haha yeah as long as we expose that info it should be pretty easy to hook up

from axon.

gjohnson avatar gjohnson commented on May 23, 2024

Have you thought about this much? I am running into a case for it, but not super sure the best implementation for it... My use case is leveraging HWM so I don't have to add a queue in the middle. I can imagine the event for meeting HWM is straight forward, but the offload process there after is not so straight forward...

socket.on('hwm', function(msg){
  // write to db
});

socket.on('meh?!?!', function(){
  // offload from db
});

from axon.

tj avatar tj commented on May 23, 2024

not much nope, so far our data is very transient but hmm yeah I guess we emit start emitting them when hwm is reached and emit another when things cool down, that what algo would be im not sure. If we were to emit that immediately it could enable thrashing so we might a backoff function for that as well

from axon.

Related Issues (20)

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.