tricircle/tricircle/common
Fangming Liu 192aa09d76 Support pagination for resource routing list operations
1. What is the problem
The resource routing list operations will retrieve all the items in
the database, which will consume too much memory and take long time
to response when the results are considerably large.

2. What is the solution for the problem
To reduce load on the service, list operations will return a maximum
number of items at a time by pagination. To navigate the collection,
the parameters limit and marker can be set in the URI. For example:

/v1.0/routings?limit=2000&marker=500

The marker parameter is the ID of the last item in the previous list.
A marker with an invalid ID returns a badRequest (400) fault.
The limit parameter sets the page size. These parameters are optional.
If the client requests a limit beyond the maximum limit configured by
the deployment, the server returns the maximum limit number of items.
Pagination and filtering can work together with routing's list operations.

3. What the features need to be implemented to the Tricircle to
realize the solution
Add pagination feature for resource routing list operations.

Change-Id: I05d1b30f502103d247d8be06c1e52fdcec42b41e
2017-07-12 17:09:48 +08:00
..
__init__.py cascade_service framework 2015-08-05 14:49:25 +03:00
baserpc.py Fix incorrect file permission 2016-05-24 16:04:16 +08:00
client.py Don't reset endpoint_url in ResourceHandle but Client 2017-05-17 17:04:18 +08:00
config.py Remove log translations 2017-04-11 09:17:08 +08:00
constants.py Support pagination for resource routing list operations 2017-07-12 17:09:48 +08:00
context.py Shared VxLAN (Part4: bridge network l3) 2017-03-24 11:34:27 +08:00
exceptions.py Remove log translations 2017-04-11 09:17:08 +08:00
httpclient.py Remove log translations 2017-04-11 09:17:08 +08:00
i18n.py Remove log translations 2017-04-11 09:17:08 +08:00
lock_handle.py Add unit tests for lock_handle module 2017-02-09 19:27:10 +08:00
opts.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
policy.py Implement asynchronous job Admin API 2017-05-03 15:48:55 +08:00
resource_handle.py Add Service Function Chain support(1) 2017-06-27 17:00:11 +08:00
restapp.py Inconsistency Description 2017-04-07 06:00:50 +00:00
rpc.py Merge "Set access_policy for messaging's dispatcher" 2017-06-14 13:41:13 +00:00
serializer.py Clean imports in code 2017-02-06 13:12:57 +07:00
topics.py Fix incorrect file permission 2016-05-24 16:04:16 +08:00
utils.py Support pagination for resource routing list operations 2017-07-12 17:09:48 +08:00
version.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
xrpcapi.py Add Service Function Chain support(1) 2017-06-27 17:00:11 +08:00