# Request / Reponse iRules

**URL:** <https://community.f5.com/t/request-reponse-irules/39783>\
**Category:** Technical Forums\
**Tags:** dev, irules, devops, application-delivery\
**Created:** [September 7, 2006, 4:46pm UTC](https://community.f5.com/t/request-reponse-irules/39783 "2006-09-07T16:46:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerald\_wegener](https://avatars.discourse-cdn.com/v4/letter/g/c37758/32.png) [@gerald\_wegener](https://community.f5.com/u/gerald_wegener)\
**Post date:** [September 7, 2006, 4:46pm UTC](https://community.f5.com/t/request-reponse-irules/39783/1 "2006-09-07T16:46:29Z")

</div>

If I have an iRule that looks at HTTP Requests as in:

when HTTP\_REQUEST {

some request logic here…

}

and another iRule that looks at HTTP Responses as in:

when HTTP\_RESPONSE {

some response logic here…

}

Is it better to combine these into a single rule if possible? e.g. is it better performance-wise, etc.

What is the rule-of-thumb in this case?

Thank You.

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [September 7, 2006, 5:32pm UTC](https://community.f5.com/t/request-reponse-irules/39783/2 "2006-09-07T17:32:16Z")

</div>

The main decision point is manageability on your part. If the logic in the two rules are related, then it’s probably best to combine them into a single iRule. If they are not and you will use them in multiple contexts, then it might be best to keep them separate.

There is a very minimal configuration overhead to split it apart into multiple iRules as there are two configuration objects instead of one, but it’s nothing that should be of a concern to you regarding runtime performance.

-Joe
