1. Cost of cryptography
Most networked applications make use of cryptography in one form or the other. Important among these are encryption and authentication. For both, one has the option of using either public or private key cryptography. Though the end-goal might be the same, the algorithmic differences between the two can have major performance differences. For example, in one instance RSA public encryption/decryption of a 20 byte String took 5987/4471 ms, respectively. In contrast, AES secret key encryption/decryption took 22/13 ms, respectively. Clearly, the latter is many orders of magnitude faster than the former. In an application which encrypts every communication message, the choice of the encryption algorithm can make a major performance difference.
2. Task repetition
As an integral work horse of the ICM, the mobile agent runs connectivity tests for every monitored website and service. The periodicity of these tests can take its toll on the battery time. Naively running these tests one after the other will drain the battery in no time. Therefore, it is important to be aware of some of functional aspects of your application and how to optimize them. Selecting a good periodicity interval using manual profiling can help to conserve the battery.
3. Communication frequency
The frequency with which your application communicates with other entities in the network can also affect battery consumption. Therefore, a communication model in which the mobile client initiates communication by consuming a RESTful webservice API in a request/response model is the most efficient for two major reasons: 1) It puts the client in charge of the communication by allowing it to start communication if and when required without any polling cost, 2) It pushes the computational cost of some intensive tasks from the client to the server.