Best practices for developing custom server extension applications

You can optimize your custom server extension application by following a set of simple guidelines.

Use the following guidelines when developing custom server extension applications:

  • Log the operations performed by the application.

    You can use the log object returned by the sensorhelper.init() function to perform logging operations.

  • Use the Python traceback module to log exception stack traces.

    If you use the sensorstub.py file in the dist/lib/sensor-tools directory as the basis of your custom server extension application, the LogError function defined in the file performs this task.

  • Increasing the number of model objects in the result object, increases the time required to store the objects.