Topic
  • 2 replies
  • Latest Post - ‏2012-06-22T11:27:24Z by SystemAdmin
SystemAdmin
SystemAdmin
6772 Posts

Pinned topic Context Variable

‏2012-06-07T11:33:41Z |
If I use more context variable in service. Is it impact the service performance?
Updated on 2012-06-22T11:27:24Z at 2012-06-22T11:27:24Z by SystemAdmin
  • swlinn
    swlinn
    1348 Posts

    Re: Context Variable

    ‏2012-06-07T14:05:27Z  
    The usual answer is "it depends". Context variables are the normal mechanism of passing data between actions, so under normal conditions I'd say their use will not impact performance. However, like any platform, these variables will consume memory, so I'd be more concerned about the memory you consume than the actual number of context variables. These variables will remain in memory until the entire transaction processing is completed (request and response or error), so if you're storing a lot of data in these variables, then be aware of your backside latency as that combined with high memory usage of the processing rules could cause throughput issues on the appliance under high load.

    Regards,
    Steve
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: Context Variable

    ‏2012-06-22T11:27:24Z  
    • swlinn
    • ‏2012-06-07T14:05:27Z
    The usual answer is "it depends". Context variables are the normal mechanism of passing data between actions, so under normal conditions I'd say their use will not impact performance. However, like any platform, these variables will consume memory, so I'd be more concerned about the memory you consume than the actual number of context variables. These variables will remain in memory until the entire transaction processing is completed (request and response or error), so if you're storing a lot of data in these variables, then be aware of your backside latency as that combined with high memory usage of the processing rules could cause throughput issues on the appliance under high load.

    Regards,
    Steve
    Thanks for the update. Really I am facing the High Latency Error.