Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asynchronous backend tracking #5

Open
karellm opened this issue Jul 29, 2015 · 4 comments
Open

Asynchronous backend tracking #5

karellm opened this issue Jul 29, 2015 · 4 comments

Comments

@karellm
Copy link

karellm commented Jul 29, 2015

It looks like the backend event tracking is done synchronously and does not support grouping. Do you plan on supporting a queue?

@HectorMalot
Copy link
Owner

Hi @karellm
Thats a great suggestion. I currently don't have the time, but I'm happy to accept (and support) a pull request if you want to code this up.

@ktopping
Copy link

When you talk about "grouping" do you mean batching multiple events into one API call? If so, is it even possible? (I ask, as can't see anything relating to this in Heap's API docs https://heapanalytics.com/docs/server-side)

@HectorMalot
Copy link
Owner

I think the intention would be to be able to queue the server-side call (e.g. DelayedJob) and have a worker take care of it. Currently, if you implement a server side activity as a result of a http request, it will first finish the whole http request with heap, before returning a response to the final user.

Even though in most cases you would either go through the user, and have the server-side requests done by a worker. I'd like to add this to the gem, for those situations where someone feels the need to schedule a server-side request as a direct result of a user interaction.

@karellm
Copy link
Author

karellm commented Jan 16, 2016

Both would be nice. Both sending multiple events in a bulk and sending those bulks asynchronously. I would definitely say that asynchronous is the most important but is rather easy to overcome on a per app basis (we use sidekiq).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants