How can one achieve scalable code. Better to frame the question as "What do you mean by scalability of code" and how to determine the extent to which code is scalable.
Waiting for positive replies.
Thanks in advance
How can one achieve scalable code. Better to frame the question as "What do you mean by scalability of code" and how to determine the extent to which code is scalable.
Waiting for positive replies.
Thanks in advance
In the ideal case, if you have a computer which runs twice as fast, your program should run twice as fast. Many don't, because the application has to wait for certain other hardware components. You should algorithms with low complexity classes and you should not wait on hardware. Use asyncronous operation if necessary. There are lots of other things to consider.
I understand Scalability as the ability of an application to handle loads greater than its average load and still be able to maintain the required level of performance.
Performance testing specifically Load Testing would be the way to test the scalability of your application.
How to make the code scalable : There is no silver bullet here. Coding best practices to ensure optimal code, Design best practices for scalability (Patterns like 3 tier / N tier help improve scalability as they make it easier to out instead of just scaling up)
I like to think of 'Scalability' beyond the most common definitions of load and performance, but a more general idea of a scalable application design.
If you're developing an interface, for instance, and the specs assure you that you'll only have 20 of these or 50 of those, I like to have my developers consider what happens if there are 200 of those, or 5000 of these. How do the interfaces, workflow, processes break down when you increase various elements by an order of magnitude or 4.