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

Add batching based on payload size #110

Closed
alexanderdean opened this issue Mar 26, 2015 · 8 comments
Closed

Add batching based on payload size #110

alexanderdean opened this issue Mar 26, 2015 · 8 comments
Assignees
Milestone

Comments

@alexanderdean
Copy link
Member

No description provided.

@jbeemster
Copy link
Member

What kind of threshold are we looking at keeping payloads below for this ticket? I also assume this would only be relating to POST requests yes?

@alexanderdean
Copy link
Member Author

Hmm, I think we should make it user-configurable? We will keep increasing the payload size supported by our collectors so this should be tunable I guess depending on the collector version a user is using...

@jbeemster
Copy link
Member

@alexanderdean what do we in the case of a GET request being too big? Do we bin it or let the collector deal with it?

@alexanderdean
Copy link
Member Author

Good Q. @fblundun - what does the JS Tracker do?

@jbeemster
Copy link
Member

Also if the collectors are going to check the size of the payload regardless does this not create a bit of double work? Do all the collectors check payload size?

@alexanderdean
Copy link
Member Author

Collectors don't formally check payload size. Collectors can reject events which exceed their tolerated payload size.

I know we had an issue at one stage where a collector was rejecting an oversized GET and that was backing up the events being sent from the browser.

@fblundun
Copy link

fblundun commented Jun 8, 2015

The JS Tracker currently doesn't check the size of GETs.

For POSTs: this function is used to determine the size of the request body. maxPostBytes is the configurable limit and it defaults to 40000. If a single event is too big, the tracker attempts to fire it once and then forgets about it. Otherwise it gets added to the localStorage queue, along with metadata about its size in bytes. When events are sent in batches, each batch is less than maxPostBytes in size.

jbeemster added a commit that referenced this issue Jun 17, 2015
Updated function to get payload size.
jbeemster added a commit that referenced this issue Jun 18, 2015
Updated function to get payload size.
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