Git Product home page Git Product logo

Comments (6)

daurer avatar daurer commented on July 29, 2024

OK I found the example "plotPulseEnergy". So for each analysis function that wants to send data we send a separate ZMQ message?
If so, it would be nice to coordinate this to reduce the number of dropped messages on the GUI...

#!python
    Data
      |
    LCLSTranslator
         \
       EventTranslator
         /
    LCLSTranslator
      |
    ipc.set_current_event --> broadcast.set_current_event
      |
    conf.onEvent
         \
       analysis.function
         /
    conf.onEvent  
         \
       analysis.function --> ipc.set_data --> broadcast.set_data --> GUI
         /
    ...

Original comment by: andyofmelbourne

from hummingbird.

daurer avatar daurer commented on July 29, 2024

The GUI is actually configured in a way that it only receives signals from ZMQ, if you subscribe to a specific data source. So if you don't ask for data, the GUI does not see any messages.


Original comment by: Benedikt Daurer

from hummingbird.

daurer avatar daurer commented on July 29, 2024

Sure, that was not question however:)

I was wondering at what point we envisage sending ZMQ messages from the backend. So far it appears that this will be done by an analysis function to be executed by each rank and at every event.


Original comment by: andyofmelbourne

from hummingbird.

daurer avatar daurer commented on July 29, 2024

If we really wanted we could aggregate them at zmqserver.py, but at the moment this does not seem to be an issue. I don't think the extra messages give any measurable overhead.


Original comment by: Filipe Maia

from hummingbird.

daurer avatar daurer commented on July 29, 2024

I'll close this as "premature optimization is the root of all evil" :)


Original comment by: Filipe Maia

from hummingbird.

daurer avatar daurer commented on July 29, 2024

Ha, good call.
I really need to understand ZMQ messaging a bit better. That is, under what conditions will messages get dropped and so on...


Original comment by: andyofmelbourne

from hummingbird.

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.