Recommended Practices

JSON calls are a costly operation as they involve network overheads, database overheads, and CPU cycles. In order to use them efficiently keep the following in mind:

  1. Make calls sparingly.

  2. Perform optimal browser caching.

  3. Avoid polling.

  4. Use a standard JSON library or JavaScript framework. JSON is used widely for JavaScript request/response so there are many frameworks supporting JSON. It is recommended to use any up-to-date JavaScript framework for communication with an TPM JSON server.

  5. Clean the browser cache properly. Prolonged usage of JSON without clearing out old data can result in unncessecary browser memory usage.

  6. Specify allowable clients in the nHTTP listener to secure the JSON server.


iWay Software