Layer7 API Management

  • 1.  Max lines of code in a policy

    Posted Apr 19, 2017 02:43 AM

    Hi 

     

    What are the max lines of code a policy can have?

     

    Our logic is getting complex and more lines of codes are getting added (around 300). How much impact would be there on performance? 

     

    What is the max suggestable lines of code to write in a policy?

     

    Regards

    Kareem



  • 2.  Re: Max lines of code in a policy
    Best Answer

    Posted Apr 19, 2017 03:30 AM

    Hi Kareem.shaik7 ,

     

    I do not believe there is a limit for the number of lines. You can have several number of lines with just comments which will not take much processing. Having said that, the simpler the policy the easier and faster it gets executed. 

     

    Regards

    Seenu Mathew