sasjs / server

Build Apps on Base SAS

Home Page:https://server.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

update to POST request format

allanbowe opened this issue ยท comments

Currently, POST requests to the /SASjsApi/stp/execute will always return a JSON object. This has the benefit of being easy to parse by client apps, however it also has a serious performance impact for larger payloads, eg:

  • The processing time needed to serialise the webout / log JSON on the server side
  • The increase in the payload size, eg when including the LOG file (JSON wrapper)

To illustrate - the request below took 2.5 minutes to generate, then 18 seconds to download (16mb):

image

The Proposal:

  1. Send back the raw value of webout.txt directly in the response
  2. Append the log if DEBUG >0 or if the SAS executable returned a non-0 response
  3. Use a separator to distinguish the two in the response (to be determined)

This will require corresponding updates in the Adapter and other SASjs-linked applications.

๐ŸŽ‰ This issue has been resolved in version 0.16.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€