Unable to process streaming data

avay_hk
I am having a live streaming stock market data api from 3rd party system... now how can I simultaneously keep getting and perform some processing on latest market data in my backend system ?
  • avay_hk
    As the backend system needs to process the live data and also the system needs to keep fetching the live data. Both the processing and fetching tasks are implemented in two different classes.
    Suppose class A is for fetching live data and class B is for processing on that live data. Now, How can I transfer the live data object in class B for processing on it ?
  • trade_then
    Different classes can separate concerns of logic but dont automatically introduce
    • multi threading
    • or synchronicity.
    and that is what you need.
    From what you have written that you have made two classes. Now make
    a third one and inside it let those 2 classes communicate with each other via respective instance variables. if you were using c#.
    what is mentioned towards the end of this comment
    would give you a head start.

    Thanks
    Regards
Sign In or Register to comment.