I’d like to practice using GenStage as a data pipeline sort of tool and I have a general question about how someone would approach the following scenario and if this is something elixir is suited for
If, for example, I wanted to continuously make HTTP calls to retrieve data from
https://www.pubnub.com/docs/console?sub=sub-c-5f1b7c8e-fbee-11e3-aa40-02ee2ddab7fe&pub=demo&channel=pubnub-sensor-network and maybe do some transformations on it and then just output it to the console, how would you go about doing this with say,
HTTPoison. Is this what
Phoenix Channels are intended for?
I’m not sure if that example that I linked allows for making HTTP requests to the endpoint but let’s say I already had some data endpoint that allowed me to make a
curl request ie:
and just started pumping out data to my terminal, how would I then do this with
HTTPoison and/or is there a better way to do it?
I’m hesitant to post my current approach since it seems incorrect and doesn’t actually work lol so was just wondering if anyone has done anything like this
thank you for your time!