Performance Issues with Validation Framework
I am planning to use Validation Framework in my project (non-struts based ) for the form validations. But I am not too sure about the performance issues I am gonna face bcoz of this. Since its a banking application so any response beyond half a second would not be bearable.
Please share ur ideas about the performance bottleneck of using Validation Framework outside a struts based application.
Cheers !!!
Irshad
Frameworks tend towards genericity which means that they can be slower due to layers.
Half a second means nothing though. If you are going to do one transaction an hour and you are only going to have one simple rule then it won't matter.
If you are going to do 1,000 transactions a second and you are going to have 1,000 complex rules then I would suggest you start working on some profiling tests to determine actual bottlenecks rather than trying to guess where the problem areas might be.
And if you have no idea what number of rules you might have nor the complexity nor the transactions loads and peaks then you need to work on the actual requirements first.
I do agree with ubut my concern is, take for example If there is an Enrollment form which hav around 10-12 fileds & I have written unique validation rule for all of them, then how fast would validation framework is going to behave. ?
> I do agree with u
> but my concern is, take for example If there is an
> Enrollment form which hav around 10-12 fileds & I
> have written unique validation rule for all of them,
> then how fast would validation framework is going to
> behave. ?
Between 2 days and 10 milliseconds.
The first could be low and the second could be high though.
Do you in fact have any requirements for any of this? Then the nature of those requirements will impact the the estimate.
And do you have any volument requirements at all? Again (thought I already implied this) if you are doing 1,000 of these a second then it is going to have an impact REGARDLESS of how you do it. But if you do need to do that volume the potentially it will be faster to do your own code. That doesn't mean your code will in fact be faster however.