{"id":134,"date":"2014-10-14T12:08:24","date_gmt":"2014-10-14T12:08:24","guid":{"rendered":"https:\/\/cigniti.com\/blog\/?p=134"},"modified":"2018-10-09T16:52:53","modified_gmt":"2018-10-09T11:22:53","slug":"independent-fail-safe-performance-testing-absolute-must-success-distributed-large-scale-e-commerce-business","status":"publish","type":"post","link":"https:\/\/www.cigniti.com\/blog\/independent-fail-safe-performance-testing-absolute-must-success-distributed-large-scale-e-commerce-business\/","title":{"rendered":"Independent & Fail- Safe Performance Testing is an absolute must for the success of distributed and large scale e-commerce business"},"content":{"rendered":"

The positive and negative impact of Flipkart’s much publicized Big Billion Sale is a classing example of the growing activity in e-commerce. Other reported inconsistencies in the ‘100 million dollar worth sales in 10 hours’ aside, the server downtime was a major source of disappointment for the users who deserved a fair access to the purchase options on the given day.<\/p>\n

In a way, downtime is good news for any e-commerce company. It indicates tremendous success in engaging the customers and other stakeholders including vendors, back end IT teams and marketing units. This means the business is heading in the right direction. Only the performance of the IT systems has to be constantly reinforced to match the ‘difficult to predict’ user activity. Fail Safe Performance Testing has become a must for any business environment which thrives on heavy volume transactions 24\/7 or during peak seasons.<\/p>\n

It is evident that the demand for highly scalable and dependable system is increasing exponentially for IT driven verticals especially e-retail, e-Learning, healthcare etc. In addition, customers are getting less tolerant and excessively vocal on social networks by sharing poor buying experience with screenshots.<\/p>\n

When it comes to e-commerce, performance testing assumes multiple dimensions. Performance testing of such a complex system should be done in a layered approach that is both manageable and delivers comprehensive coverage. Big distributed systems can’t be fully tested on UAT environment. There are several levels of testing stretching over a range of speeds, resources, and fidelity to a production system.<\/p>\n

For example, a typical large system might consist of thousands of various servers, front-end Web applications, REST API servers, internal services, caching systems, and various databases. Such a system might processes several terabytes of data every day and its storage is measured in petabytes. It is constantly hit by countless clients and users. It is difficult to replicate all this on a UAT environment.<\/p>\n

\"iRAC-System-Diagram_final\"<\/p>\n

Testing of large scale distributed systems is hard and there is much to test beyond traditional testing methods. Performance testing, load testing, and error testing must all be undertaken with realistic usage patterns and extreme loads.<\/p>\n

Traditionally performance testing approach usually follows Identification of Key Scenarios, Setting up the Load Environment, Designing the Scripts, Generating load, Monitoring and at last Analysis and Reporting. It works for most of the system but it is completely a different ball game when conducting performance testing of large scale distributed system.<\/p>\n

Business leaders and technology stakeholders need to look at performance from a fresh perspective.<\/p>\n

The following table describes some of the characteristics of the common test scenarios associated with large scale distributed systems:<\/p>\n\n\n\n\n\n\n\n\n\n
Key Characteristics<\/strong><\/td>\n<\/tr>\n
High Volume<\/td>\n\u00bb Terabyte of transactional records in database
\n\u00bb Network throughput in gigabits per second<\/td>\n<\/tr>\n
High Transactions<\/td>\n\u00bb Millions of transactions per second from end users
\n\u00bb Millions of transactions in database due to few triggers (e.g. large report generation due to batch processing)<\/td>\n<\/tr>\n
High Concurrency<\/td>\n\u00bb Huge user base accessing simultaneously (e.g. Facebook)<\/td>\n<\/tr>\n
Geographically Distributed<\/td>\n\u00bb Traffic from all over the world<\/td>\n<\/tr>\n
High availability<\/td>\n\u00bb Huge revenue loss and complaining customers due to unavailability<\/td>\n<\/tr>\n
Huge Data Analytics<\/td>\n\u00bb Big data, data warehousing<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

The following table describes performance testing solutions to address the business problems associated with a large scale distributed system:<\/p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
Key Challenges<\/strong><\/td>\nProposed Solution<\/strong><\/td>\n<\/tr>\n
High cost for test environment setup<\/td>\n\u00bb Production or staging environment
\n\u00bb Scaled down environment<\/td>\n<\/tr>\n
High cost for load generation environment<\/td>\n\u00bb Cloud based load generation tool<\/td>\n<\/tr>\n
High license cost for tools and utilities<\/td>\n\u00bb Open source load generation \/ monitoring tools
\n\u00bb Use pay per service if number of runs are less<\/td>\n<\/tr>\n
Production like environment configuration<\/td>\n\u00bb Use CI tool like Jenkins for automatic build and deployment<\/td>\n<\/tr>\n
Configuration consistency for large number of nodes<\/td>\n\u00bb Automatic validation of configurations before and after the execution
\n\u00bb Take restore point and roll it back after the performance run<\/td>\n<\/tr>\n
Population of high volume of test data<\/td>\n\u00bb Copy production data and mask it
\n\u00bb Alteration of DB volumes
\n\u00bb Use tool like database generator, dbmonster
\n\u00bb Use historic data<\/td>\n<\/tr>\n
Simulation of realistic load<\/td>\n\u00bb Identify key scenarios and usage patterns from log files, market research, BA etc.
\n\u00bb Generate load from different geographies
\n\u00bb Baseline response with CDN and without CDN<\/td>\n<\/tr>\n
Penetrating the system complexity, touching all system nodes and database tables<\/td>\n\u00bb Understand system architecture
\n\u00bb Manually walkthrough the scenarios and watch traffic on different nodes and database tables
\n\u00bb Detail analysis of application logs
\n\u00bb Understand load balancer strategy<\/td>\n<\/tr>\n
Identification and testing of failover scenario<\/td>\n\u00bb Test the failover scenario separately during load condition<\/td>\n<\/tr>\n
Third party interactions<\/td>\n\u00bb Simulate using stubs<\/td>\n<\/tr>\n
Monitoring of large number of disparate systems<\/td>\n\u00bb Use diagnostic tools like AppDynamics, DynaTrace, HP Diagnostic, Glassbox<\/td>\n<\/tr>\n
Result collation and analysis<\/td>\n\u00bb Automatic result collection and collation
\n\u00bb Collection of built-in anti patterns for quick analysis
\n\u00bb Knowledge base on historical failures or bottlenecks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Conclusion<\/strong><\/p>\n

For an e-commerce company, the user can be any computer literate individual with access to internet. This assumption makes it very difficult to predict user activity because the scenarios that generate peak traffic are susceptible to changing combinations of the demand of a product, the pricing, the launch, availability and UX.<\/p>\n

To stay resilient, a fail-safe performance testing consolidates the scenarios into predictable, manageable and contingent performance support strategies that can be implemented to match the traffic with optimized utilization of systems and resources.<\/p>\n","protected":false},"excerpt":{"rendered":"

The positive and negative impact of Flipkart’s much publicized Big Billion Sale is a classing example of the growing activity in e-commerce. Other reported inconsistencies in the ‘100 million dollar worth sales in 10 hours’ aside, the server downtime was a major source of disappointment for the users who deserved a fair access to the […]<\/p>\n","protected":false},"author":2,"featured_media":13128,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[16,18,21,15,19,23,20,214,22,17],"ppma_author":[3736],"class_list":["post-134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance-testing","tag-big-billion-sale","tag-big-data","tag-bottle-neck-analysis","tag-e-commerce","tag-financial-transactions","tag-global","tag-load-testing","tag-performance-testing","tag-performance-threshold","tag-server-downtime"],"authors":[{"term_id":3736,"user_id":2,"is_guest":0,"slug":"admin","display_name":"Cigniti Technologies","avatar_url":{"url":"https:\/\/www.cigniti.com\/blog\/wp-content\/uploads\/120X120-1.png","url2x":"https:\/\/www.cigniti.com\/blog\/wp-content\/uploads\/120X120-1.png"},"user_url":"http:\/\/www.cigniti.com\/","last_name":"Technologies","first_name":"Cigniti","job_title":"","description":"Cigniti is the world\u2019s leading AI & IP-led Digital Assurance and Digital Engineering services company with offices in India, the USA, Canada, the UK, the UAE, Australia, South Africa, the Czech Republic, and Singapore. We help companies accelerate their digital transformation journey across various stages of digital adoption and help them achieve market leadership."}],"_links":{"self":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":0,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/media\/13128"}],"wp:attachment":[{"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/tags?post=134"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.cigniti.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}