Hi,
I would like to ask about X-Total-Count header restrictions.
In my understanding, the query-based pagination described in TMF630 suggests that some snapshots of data should be created for each session when the iteration starts.
If I am right, then that solution seems to not live up to the expectations of modern cloud architectures. It assumes that a single database session will be held for each sequence of iterations, however nowadays service instances should be added or removed on the fly depending on the current load and they should not be obligated to run for a specified time.
As a counter-example, please take a look at the GraphQL solution
https://graphql.org/learn/pagination/It does not force the system to hold a snapshot of data and it allows the offset to be a String instead of an Integer which gives the possibility for more flexible queries (not only iterating from the start to the end of data).
Assuming that we are not creating a data snapshot after the first API call, I am wondering if it is right for the X-Total-Count header value to change with each iteration.
In our case (TMF642 Alarm integration), the data changes very quickly on our side so most probably, the X-Total-Count will differ between the first and last iteration.
It would be more intuitive to rely only on the "next" link presence but the X-Total-Count header is mandatory according to TMF630. What is your recommendation for our case?
------------------------------
Marcin Roman
Comarch S.A.
------------------------------