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

Question: Can someone explain in simple terms what "concurrent auction" means? #3958

Closed
headerbidding opened this issue Jul 2, 2019 · 7 comments

Comments

@headerbidding
Copy link

headerbidding commented Jul 2, 2019

Type of issue

Question:
Can someone explain in simpler terms (and with an example) what "concurrent auction" means?

Ref: https://gist.github.com/mkendall07/3dd690e7f624b61cb364fbf8a4ba8dbb

@jaiminpanchal27
Copy link
Collaborator

@headerbidding
In 0.x all calls to requestBids were queued so at a time only one auction could run. Subsequent calls to requestBids would have to wait for previous auction to finish. With concurrent auction we removed this and allowed each auction to start as soon as requestBids is executed.

pbjs.requestBids(options1) // first auction
pbjs.requestBids(options2) // second auction

In 0.x second auction would be queued if first is not finished.
In >=1.0 both auction will start at the same time in parallel.

@headerbidding
Copy link
Author

Hmmm. I thought there is just one auction for each ad and the highest bidder wins.

@stale
Copy link

stale bot commented Jul 18, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 18, 2019
@headerbidding
Copy link
Author

I still dont understand

@stale stale bot removed the stale label Jul 18, 2019
@bretg
Copy link
Collaborator

bretg commented Jul 28, 2019

I thought there is just one auction for each ad and the highest bidder wins.

There is just one auction per adunit. But there are use cases like infinite scroll where there's a series of calls to pbjs.requestBids()

  1. pbjs.requestBids() - covers the initial adunits on the page
  2. pbjs.requestBids() - covers the first 300x250 in a dynamic div on scroll
  3. pbjs.requestBids() - covers the second 300x250 in a dynamic div on scroll
  4. pbjs.requestBids() - covers the third 300x250 in a dynamic div on scroll

Concurrent auction means that subsequent calls to requestBids don't have to wait for their predecessors. So the auction #4 above can start before #3 completes.

@headerbidding
Copy link
Author

Thank you. Now I got it 👍 -)

@bretg
Copy link
Collaborator

bretg commented Jul 28, 2019

Cool

@bretg bretg closed this as completed Jul 28, 2019
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