rakam-io / rakam-api

📈 Collect customer event data from your apps. (Note that this project only includes the API collector, not the visualization platform)
https://rakam.io
GNU Affero General Public License v3.0
798 stars 105 forks source link

Live View page subsamples at low event rate #43

Closed QCaudron closed 7 years ago

QCaudron commented 7 years ago

On the Live View page, with no filters, when I click "Subscribe new events", I'm able to see each event when I create events every three seconds :

while True:
    response = requests.post(url, data=json.dumps(
         {"api": {"api_key":"WRITE_KEY"},
          "collection": np.random.choice(events),
          "properties": {"_time": str(datetime.today()),
                         "_user": np.random.choice(users)}}))
     print(response.text)
     sleep(3)

When I change this to a two-second delay between events, the Live View page starts choking, only showing one in about every three events.

Any faster than that, and no events show up at all.