Implement Pagination in REST Service: Integration Cloud by Ankur Jain
There are situations in which we need to fetch a large number of records from the on-premise application in the Integration Cloud. For example, there are 100k+ records resides in the on-premise database table which we need to fetch and expose them into the REST service response. In this particular scenario, we are considering the database is installed behind the firewall. So to communicate with the on-premise application, connectivity agent is required. Connectivity agent has some limitation in which agent can parse payload of 10MB only for a single request. Exceeding the limit may cause stack overflow error in the agent which may bring the agent down.
So to handle a large volume of data from the on-premise application, we have to keep this limitation in mind and implement the solution accordingly. There might be multiple ways to handle such a situation. Here I’m gonna to handle this situation by implementing the pagination into the REST service which will fetch the data into the chunk.
To complete this article we should have below
- Oracle Database 12c
- Oracle Integration Cloud instance
- Connectivity agent installed
For regular information on Oracle PaaS become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.