No static methods scale better. The infact style of programming (imperative or object-oriented) does not really matter for scaling. There are two main aspects of scaling, and what to do to improve the scale depends on what we mean:
1 Scaling by the number of requests processed a second time
This type of scaling is usually associated with adding more computers to the cluster to increase overall system throughput. The increase in scale is often associated with the initial reduction in the number of shared resources used when using caches, and then the subsequent division of access to data into fragments.
2 Data scaling
This is when the system receives more and more data over time, and operations that access the data (search, filtering, etc.) become slower because the algorithms are more complex than O (1). In this case, the usual strategy is to increase the number of read and write points and use parallel algorithms such as Map / Reduce.
But none of these aspects have anything to do with whether you use static methods or not, whether just a few queries work with large datasets or with single data sources.
Paul keeble
source share