@DevOpsSummit Authors: Derek Weeks, Liz McMillan, Mehdi Daoudi, Pat Romanski, Elizabeth White

Related Topics: @DevOpsSummit, Microservices Expo, Containers Expo Blog, @CloudExpo

@DevOpsSummit: Article

Ten Performance Strategies | @DevOpsSummit #APM #DevOps #Microservices

Test Early and Often

At some point you've probably heard the term "test early and often." If you are in an Agile organization, that term perfectly captures the philosophy of iterative development and the commitment to rooting out defects sooner rather than later.

But do you know the origin of the phrase?

The original form of the saying was actually "Vote early - and vote often." It appeared in print as far back as 1858 as a tongue-in-cheek commentary on the democratic ideal that every person gets an equal vote. For you history buffs out there, it's more closely associated with corruption in the voting process in the early 1900s. Local thugs would make men grow beards before voting day. After they voted once, they'd shave it to a moustache, rendering them unrecognizable so they could vote again. Finally they would vote a third time, clean-shaven. The end-result: a high-level politician in bed with organized crime. Some people believe that Al Capone himself coined the phrase, though it was more likely popularized by Chicago mayor William Hale Thompson.

It's nice - maybe even ironic - that a phrase which had such unscrupulous origins is now a hallmark characteristic of a process that exemplifies teamwork and quality. It's in that modern spirit that we wanted to share these 10 strategies to help you test early - and test often.

1. Performance Test Automation

Test automation is often set up without performance testing in mind, but that doesn't make the practice any less relevant for performance testers. Automation is probably the single most important activity to testing often. An automation system helps you configure entire series and libraries of tests to run by themselves, on a set schedule or as needed. They plug seamlessly into your continuous integration system if you have one, but even if you don't, a strong suite of automated tests will help you prevent regressions and increase test coverage.

One way to get started with automation for performance testing is to leverage whatever has been done for functional testing. Dig into that test suite and look for opportunities to modify test scenarios for high scale and concurrency. You don't need to reinvent the wheel, and you can walk away with a great foundation for automated performance testing.

2. Make Performance Unit Tests

Performance tests don't have to be limited to large-scale peak-load tests. In the spirit of testing early, you can start building unit tests for performance almost as early as you have code. In fact,performance test-driven development (TDD) is a practice that involves creating performance expectations and executable tests for a code module even before the code is written. You define a service level agreement, or SLA, for a component that dictates how it is to perform - seconds to load, response time, scalability requirements, etc.

If you want to test early, start identifying specific code paths that could be bottlenecks and build small unit tests that exercise their scalability. Good places to look include complicated database queries or key transactions like user login or cart checkout. These scenarios can also form the basis for your test automation library, which will get populated as the platform gets built.

3. Be Modular

As you combine the concepts of performance unit testing with automation, you end up with a modular library of building blocks that you can mix and match into a wide variety of different testing scenarios. Each of these building blocks may be simple and straightforward on its own, but you can piece them together into quite complex interactions that fully exercise a system in a complete and realistic way.

Here's the power of this approach. Let's say after a new build you hear from Operations that a particular transaction path is "acting up" in production. Maybe you notice customers complaining or the metrics just look off. You can quickly assemble a scenario from your modular unit tests to recreate this transaction, letting you quickly troubleshoot what's going and get to a resolution as fast as possible. Modularity helps you adapt, react, and explore the system more thoroughly.

4. Synthetic Users

One way to test often is to integrate your testing procedure with your production environment and have test scenarios running all the time. You can do this with synthetic users. A synthetic user executes a specific transaction path within a live environment on a specified frequency. To the system, synthetic users look like any other users. In reality, they are fully instrumented and marked up so they can report the metrics of the experience they are executing.

A synthetic user acts as a canary in a coal-mine. It runs through its defined path and tells you where it gets into trouble - before a real user gets into trouble. That way you can see problems before they become critical. Check out more about synthetic users here.

5. Exploratory Testing

When an app - or even a feature - is still in its early stages, it can be hard to build rigorous tests around it. Code is changing rapidly, entire sections are incomplete, and there's no guarantee that what you are testing will ever make it into production. But you can still test.

The method here is called exploratory testing, and it is a process that combines learning, test design, and test execution all into one connected set of activities. As a tester, you start to use the app, or feature, or module, without any real direction or purpose. You are an explorer. As you use the app, you can study the code to understand how it works, and you look for places to test - complicated algorithms, messy code, critical functions. As you explore, you build tests and exercise those tests. The process helps you get familiar with the landscape and create a suite of tests early on in the process. It also helps you get to know the product better than the development team.

6. Use the Cloud

Performance tests are often limited by the hardware you have available. Load testers know this too well - you can't test too often if you are waiting for production resources to free up in the middle of the night on a Sunday when usage is very low. Fortunately, the cloud can push things wide open.

First and foremost, you can use the cloud to drive load on the system. In fact, this may be an even better way of running a load test than you are doing right now because when the load is generated in the cloud, you can be sure it is going through all the same network layers, load balancers, and security firewalls that your users have to go through when accessing your system. You can spread load sources across multiple geographies for the most realistic tests. It's easy to scale it up and down, or to target specific functionality, and it's flexible because you don't have to have all of that hardware sitting idle, waiting for Sunday night to come along. Incorporating cloud testing into your collection of testing tools can give you powers you never had before.

7. Make Everyone Responsible

You can only do so much as an individual person or an isolated team. If you really want to test early and often, you have to get everyone else involved. Start right now by raising awareness about performance testing, and educate people on what performance testing means. A great way to do this is to share the results of your performance tests on a regular basis so people know which needle you are trying to move. Also, you can integrate your performance testing with other systems like automation and continuous integration.

Many of the other tips in this list are better done as a cohesive part of an Agile team and to get there, you have to make everyone feel a sense of shared ownership over the performance of the system. Quality is on everyone's mind these days, but if they are only thinking about functional testing then your organization just isn't where it needs to be. Performance should be part ofeveryone's job description.

8. Partner With Developers

Look through many of these tips and one thing may be clear: testing is a lot easier when you know the code. Whether or not you know how to code, you should have a good understanding of what's happening under the hood of the application your team is creating.

Teamwork is so critical to Agile, but often performance engineers are left in their own separate silo. If this is the case in your organization, you have to proactively build a bridge to your development team. One effective way to do that is to include performance requirements on the Agile task board. Define performance behaviors up front so developers are thinking about them, and offer to help them think through requirements, challenges, and solutions. Get to know the code they are writing. A strong partnership with your dev team will greatly improve quality.

9. Shared Test Scenarios

As is true with almost anything, the more you can leverage from work you've already done, the better. That means finding ways to take advantage of all the tests you've created and all the infrastructure you've invested in to allow you to test more often.

The Neotys suite of products supports shared test scenarios, which means you can take a specific scenario you've developed in Test and push that out as a simulated user test executed by a synthetic user. The same scenario used for load testing can be migrated into production for performance monitoring. Component tests created by developers or embedded testers can be used as the basis for creating larger load test scenarios. The ability to share test scenarios across teams and environments greatly increases your coverage and flexibility.

10. Stay Laser-Focused on KPIs

Finally, as a performance tester you should know what your key performance indicators (KPIs) are and stay laser-focused on them. All of these strategies in this article can be overwhelming if you don't really know what you want out of them. Your KPIs tell you.

Whether you are load testing in a hurry or have all the time you need, your KPIs keep you on track with respect to page load times, scalability requirements, transaction rates, and the user experience. To best employ these strategies for testing early and often, you'll want to define your KPIs, vet them with the team, measure your success against them, and share those results on a regular basis.

Photo Credit: E. Benjamin Andrews - Andrews, E. Benjamin. History of the United States, volume V. Charles Scribner's Sons, New York. 1912.

More Stories By Tim Hinds

Tim Hinds is the Product Marketing Manager for NeoLoad at Neotys. He has a background in Agile software development, Scrum, Kanban, Continuous Integration, Continuous Delivery, and Continuous Testing practices.

Previously, Tim was Product Marketing Manager at AccuRev, a company acquired by Micro Focus, where he worked with software configuration management, issue tracking, Agile project management, continuous integration, workflow automation, and distributed version control systems.

@DevOpsSummit Stories
Modern software design has fundamentally changed how we manage applications, causing many to turn to containers as the new virtual machine for resource management. As container adoption grows beyond stateless applications to stateful workloads, the need for persistent storage is foundational - something customers routinely cite as a top pain point. In his session at @DevOpsSummit at 21st Cloud Expo, Bill Borsari, Head of Systems Engineering at Datera, explored how organizations can reap the benefits of the cloud without losing performance as containers become the new paradigm.
Continuous Delivery makes it possible to exploit findings of cognitive psychology and neuroscience to increase the productivity and happiness of our teams. In his session at 22nd Cloud Expo | DXWorld Expo, Daniel Jones, CTO of EngineerBetter, will answer: How can we improve willpower and decrease technical debt? Is the present bias real? How can we turn it to our advantage? Can you increase a team’s effective IQ? How do DevOps & Product Teams increase empathy, and what impact does empathy have on productivity?
SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
As many know, the first generation of Cloud Management Platform (CMP) solutions were designed for managing virtual infrastructure (IaaS) and traditional applications. But that's no longer enough to satisfy evolving and complex business requirements. In his session at 21st Cloud Expo, Scott Davis, Embotics CTO, explored how next-generation CMPs ensure organizations can manage cloud-native and microservice-based application architectures, while also facilitating agile DevOps methodology. He explained how automation, orchestration and governance are fundamental to managing today's hybrid cloud environments and are critical for digital businesses to deliver services faster, with better user experience and higher quality, all while saving money.
SYS-CON Events announced today that Synametrics Technologies will exhibit at SYS-CON's 22nd International Cloud Expo®, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Synametrics Technologies is a privately held company based in Plainsboro, New Jersey that has been providing solutions for the developer community since 1997. Based on the success of its initial product offerings such as WinSQL, Xeams, SynaMan and Syncrify, Synametrics continues to create and hone innovative products that help customers get more from their computer applications, databases and infrastructure. To date, over one million users around the world have chosen Synametrics solutions to help power their accelerated business and personal computing needs.
DevOps promotes continuous improvement through a culture of collaboration. But in real terms, how do you: Integrate activities across diverse teams and services? Make objective decisions with system-wide visibility? Use feedback loops to enable learning and improvement? With technology insights and real-world examples, in his general session at @DevOpsSummit, at 21st Cloud Expo, Andi Mann, Chief Technology Advocate at Splunk, explored how leading organizations use data-driven DevOps to close their feedback loops to drive continuous improvement.
You know you need the cloud, but you're hesitant to simply dump everything at Amazon since you know that not all workloads are suitable for cloud. You know that you want the kind of ease of use and scalability that you get with public cloud, but your applications are architected in a way that makes the public cloud a non-starter. You're looking at private cloud solutions based on hyperconverged infrastructure, but you're concerned with the limits inherent in those technologies. What do you do?
Sanjeev Sharma Joins June 5-7, 2018 @DevOpsSummit at @Cloud Expo New York Faculty. Sanjeev Sharma is an internationally known DevOps and Cloud Transformation thought leader, technology executive, and author. Sanjeev's industry experience includes tenures as CTO, Technical Sales leader, and Cloud Architect leader. As an IBM Distinguished Engineer, Sanjeev is recognized at the highest levels of IBM's core of technical leaders.
The 22nd International Cloud Expo | 1st DXWorld Expo has announced that its Call for Papers is open. Cloud Expo | DXWorld Expo, to be held June 5-7, 2018, at the Javits Center in New York, NY, brings together Cloud Computing, Digital Transformation, Big Data, Internet of Things, DevOps, Machine Learning and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit your speaking proposal today!
The past few years have brought a sea change in the way applications are architected, developed, and consumed—increasing both the complexity of testing and the business impact of software failures. How can software testing professionals keep pace with modern application delivery, given the trends that impact both architectures (cloud, microservices, and APIs) and processes (DevOps, agile, and continuous delivery)? This is where continuous testing comes in. D
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of business. Only 12% still survive. Similar percentages are found throughout enterprises of all sizes.
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, which can process our conversational commands and orchestrate the outcomes we request across our personal and professional realm of connected devices.
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It’s clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. That means serverless is also changing the way we leverage public clouds. Truth-be-told, many enterprise IT shops were so happy to get out of the management of physical servers within a data center that many limitations of the existing public IaaS clouds were forgiven. However, now that we’ve lived a few years with public IaaS clouds, developers and CloudOps pros are giving a huge thumbs down to the ...
Digital transformation is about embracing digital technologies into a company's culture to better connect with its customers, automate processes, create better tools, enter new markets, etc. Such a transformation requires continuous orchestration across teams and an environment based on open collaboration and daily experiments. In his session at 21st Cloud Expo, Alex Casalboni, Technical (Cloud) Evangelist at Cloud Academy, explored and discussed the most urgent unsolved challenges to achieve full cloud literacy in the enterprise world.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, led attendees through the exciting evolution of the cloud. He looked at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering management. To date, IBM has launched more than 50 cloud data centers that span the globe. He has been building advanced technology, delivering “as a service” solutions, and managing infrastructure services for the past 20 years.
There is a huge demand for responsive, real-time mobile and web experiences, but current architectural patterns do not easily accommodate applications that respond to events in real time. Common solutions using message queues or HTTP long-polling quickly lead to resiliency, scalability and development velocity challenges. In his session at 21st Cloud Expo, Ryland Degnan, a Senior Software Engineer on the Netflix Edge Platform team, will discuss how by leveraging a reactive stream-based protocol, we have been able to solve many of these problems at the communication layer. This makes it possible to create rich application experiences and support use-cases such as mobile-to-mobile communication and large file transfers that would be difficult or cost-prohibitive with traditional networking.
Kubernetes is an open source system for automating deployment, scaling, and management of containerized applications. Kubernetes was originally built by Google, leveraging years of experience with managing container workloads, and is now a Cloud Native Compute Foundation (CNCF) project. Kubernetes has been widely adopted by the community, supported on all major public and private cloud providers, and is gaining rapid adoption in enterprises. However, Kubernetes may seem intimidating and complex to learn. This is because Kubernetes is more of a toolset than a ready solution. Hence it’s essential to know when and how to apply the appropriate Kubernetes constructs.
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy. Meanwhile, 94% of enterprises are using some form of XaaS – software, platform, and infrastructure as a service.
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud strategy. Meanwhile, 94% of enterprises are using some form of XaaS – software, platform, and infrastructure as a service.
DevOps at Cloud Expo – being held June 5-7, 2018, at the Javits Center in New York, NY – announces that its Call for Papers is open. Born out of proven success in agile development, cloud computing, and process automation, DevOps is a macro trend you cannot afford to miss. From showcase success stories from early adopters and web-scale businesses, DevOps is expanding to organizations of all sizes, including the world's largest enterprises – and delivering real results. Among the proven benefits, DevOps is correlated with 20% faster time-to-market, 22% improvement in quality, and 18% reduction in dev and ops costs, according to research firm Vanson-Bourne. It is changing the way IT works, how businesses interact with customers, and how organizations are buying, building, and delivering software.
All clouds are not equal. To succeed in a DevOps context, organizations should plan to develop/deploy apps across a choice of on-premise and public clouds simultaneously depending on the business needs. This is where the concept of the Lean Cloud comes in - resting on the idea that you often need to relocate your app modules over their life cycles for both innovation and operational efficiency in the cloud.
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on quality and value. Based in Bellevue, Washington, T-Mobile US provides services through its subsidiaries and operates its flagship brands, T-Mobile and MetroPCS. For more information, visit https://www.t-mobile.com.
SYS-CON Events announced today that Cedexis will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.