Welcome!

@DevOpsSummit Authors: Liz McMillan, Zakia Bouachraoui, Pat Romanski, Elizabeth White, Yeshim Deniz

Related Topics: @DevOpsSummit, Linux Containers, Containers Expo Blog, FinTech Journal

@DevOpsSummit: Blog Feed Post

Application Modularization in Testing | @CloudExpo @BlueBox #DevOps

One of the most important best practices in application development is testing

Why Application Modularization Matters: Testing
By Ruben Orduz

Preface
A few weeks ago my colleague PJ Hagerty wrote about driving your existing monolithic application toward a more modular design. This time around I'll dive a little bit deeper into its importance and the benefits of application modularization.

The Case
One of the most important best practices in application development is testing, and more specifically automated and continuous testing. When your application is a monolith with multiple functionalities and responsibilities, automated testing becomes massively unwieldy. To illustrate this issue let's use the following illustration of conceptual (and, admittedly trivial) photo gallery web application:

conceptual photo gallery web application example

Say you want to test Login functionality. After writing some basic testing setup and "plumbing" code, etc., you can start writing tests against the Login functionality. What if you want to test Post Photo functionality? On top of all the testing code for Login functionality now you also need special testing code for Post Photo functionality. How about testing Get Photo functionality? You need all of the above code plus the code to test Get Photo. At this point as you start getting testing failures, you'll be heading down-head first-into the proverbial rabbit hole. You won't know for sure where things are going awry: is the Login functionality failing or the Post Photo functionality or Get Photo functionality? And this is as trivial and straightforward as it gets. Now imagine a real application with more complex and intertwined functionality: a nightmare to maintain, test and develop.

Now, let's imagine the same application with a more modular approach:

conceptual photo gallery web application example with modular approach example

It's worth noting that in this example for the sake of simplicity, the Login module is also the front end your users interact with your application.

In the illustration above, we modularized the application in their own logical models and functionality driving toward what is known in the world of software development as single-responsibility principle. So, let's circle back to testing. Let's say you want to test Get Photo functionality. Now it's substantially easier: you can write tests against the Photo module and mock or stub out all other functionality (namely the Login module), same with Album module and any other modularized components. So now you can not only add automated testing more easily, but it becomes significantly simpler to figure out and fix when things fail-you have complete control over the context, so you'll know if it's a real failure or a false-positive and where those failures come from.

Closing thoughts
Testing is a critical part of your application. It's as critical as having a snazzy UI layer, super fast performance or some insanely clever functionality. Without proper testing you're, figuratively speaking, going off the deep end of technical debt and sooner or later you will have to pay. With a monolith, your testing will be limited, at best and nonexistent at worst. If you want your application to be easily maintainable, simple to work on and add or modify existing functionality with ease, you must drive toward modularization and thus testing.

Read the original blog entry...

More Stories By Blue Box Blog

Founded in 2003 by Jesse Proudman, Blue Box offers Blue Box Cloud—a managed Private Cloud as a Service (PCaaS) product available in both hosted and on-prem versions, powered by OpenStack.

Blue Box employees bring a wealth of diverse, in-depth operational experience to each customer installation of our unique hosted private cloud offering. Think of Blue Box team as your application’s lifeline.

@DevOpsSummit Stories
"DevOps is set to be one of the most profound disruptions to hit IT in decades," said Andi Mann. "It is a natural extension of cloud computing, and I have seen both firsthand and in independent research the fantastic results DevOps delivers. So I am excited to help the great team at @DevOpsSUMMIT and CloudEXPO tell the world how they can leverage this emerging disruptive trend."
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.
CloudEXPO | DevOpsSUMMIT | DXWorldEXPO Silicon Valley 2019 will cover all of these tools, with the most comprehensive program and with 222 rockstar speakers throughout our industry presenting 22 Keynotes and General Sessions, 250 Breakout Sessions along 10 Tracks, as well as our signature Power Panels. Our Expo Floor will bring together the leading global 200 companies throughout the world of Cloud Computing, DevOps, IoT, Smart Cities, FinTech, Digital Transformation, and all they entail. As your enterprise creates a vision and strategy that enables you to create your own unique, long-term success, learning about all the technologies involved is essential. Companies today not only form multi-cloud and hybrid cloud architectures, but create them with built-in cognitive capabilities.
DevOpsSUMMIT at CloudEXPO, to be held June 25-26, 2019 at the Santa Clara Convention Center in Santa Clara, CA – 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.
The benefits of automated cloud deployments for speed, reliability and security are undeniable. The cornerstone of this approach, immutable deployment, promotes the idea of continuously rolling safe, stable images instead of trying to keep up with managing a fixed pool of virtual or physical machines. In this talk, we'll explore the immutable infrastructure pattern and how to use continuous deployment and continuous integration (CI/CD) process to build and manage server images for any platform. Then we'll show how automate deploying these images quickly and reliability with open DevOps tools like Terraform and Digital Rebar. Not only is this approach fast, it's also more secure and robust for operators. If you are running infrastructure, this talk will change how you think about your job in profound ways.