#98 support batch requests for creating waivers
Closed: Fixed 5 years ago Opened 6 years ago by mjia.

A client like Bodhi would have performance issues when sending multiple requests simultaneously for creating waivers on a pakcage update. To reduce the number of HTTP connections the client has to make and eliminate the amount of overhead, we can introdcue a new endpoint /batch to accept one request with a list of HTTP requests. The API would look like this Flask snippet

http://flask.pocoo.org/snippets/131/


Instead of a thing to allow making multiple arbitrary requests to any URL, would it be simpler to just expand the POST /waivers/ API a little? For example it could accept a list of dicts representing multiple waivers to be created.

it could accept a list of dicts representing multiple waivers to be created.

.. makes sense to me.

it could accept a list of dicts representing multiple waivers to be created.

Yes, I've thought about that. For Bodhi, this should be enough.

Metadata Update from @lholecek:
- Issue assigned to lholecek
- Issue close_status updated to: Fixed
- Issue set to the milestone: 0.10
- Issue status updated to: Closed (was: Open)
- Issue tagged with: feature

5 years ago

Login to comment on this ticket.

Metadata