Webinar: From Chaos To Control: Observability And Testing In Production [Voices Of Community]
Tags: webinar, testing, productivity, chaos
Published: 2023-05-02 06:13:23

Microservice architectures are gaining immense popularity, offering many advantages over monolithic architecture, such as improved scalability, better resilience, and faster time-to-market. However, there are different [microservices architecture challenges](https://www.lambdatest.com/blog/testing-challenges-related-to-microservice-architecture/?utm_source=hashnode&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=blog), one of the major ones being the difficulties in managing, monitoring, and maintaining the system.

With domain-driven design at the heart of microservices, different bounded contexts cooperate to accomplish a business process. Two important questions arise — is my process working fine? If not, why is it failing? This is where the concept of ‘Observability’ comes into play.

We’re sure you would have many questions about monitoring, observability, and how to develop your observability strategy.
But worry not! Our special guest Vanya Seth, Head of Technology, Thoughtworks India, has teamed up with Manoj Kumar, VP — Developer Relations & OSPO, LambdaTest, to discuss and share her ideas and thoughts on the concept of observability and how it facilitates the concept of testing in production.

If you missed the power-packed webinar, let us look at the event’s major highlights.

{% youtube QWshPrXNNaM %}

***Our [Gaming Platform Test Cases](https://www.lambdatest.com/learning-hub/gaming-platform-test-case-template?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) Templates tutorial offers a step-by-step guide for effective test scenarios. Improve your game’s quality and performance today.***

## The Landscape Today

![](https://cdn-images-1.medium.com/max/3998/0*LLdrkCA52hqf3TJY.png)

The webinar starts with Vanya contrasting the changes in the landscape of the monolithic application and between distributed architecture.

She explains that when she was working with a monolithic application, it was a single Deployable unit. She could monitor some of the signals of the application and derive whether her system was up or down. Hence, it was a very binary situation, whether the system was up because the web application was responding or down.

But since then, we have evolved a lot in terms of system architecture and more complex environments, including microservices. We have gained the autonomy to deploy different system parts depending on the use case or the business problem we were trying to solve.

With an analogy of pet and cattle, Vanya explains the difference; with the monolithic system acting more like a pet, she knew the IP address to get inside the system and figure out what was happening.

During the last decade, with the cloud’s rise and serverless popularity due to managed cloud services, infrastructure has become more like cattle, where we aren’t concerned about its ephemeral nature because it can spin up and die down at free will.

## The Unknowns

![](https://cdn-images-1.medium.com/max/3998/0*LQPW1bZCMAreEuvl.png)

Vanya shares an interesting outlook on how we can understand and differentiate between observability and monitoring with the help of mapping the Knowns and Unknowns framework.

In a real situation, Vanya explains the difference; Monitoring allows teams to watch and understand the state of their systems with the help of gathering predefined sets of metrics or logs, whereas Observability is a solution that will enable teams to actively debug their system and help understand why something is behaving the way it is behaving right now.

***Check out these top 50+ essential [Mobile Development test cases](https://www.lambdatest.com/learning-hub/mobile-development-test-case-template?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) to ensure your data’s integrity, accuracy, and consistency. Download our comprehensive template now.***

## What is Observability?

Vanya explains observability for her is “what” is not working to “why” something is not working and the transition from what to why.

![](https://cdn-images-1.medium.com/max/3998/0*6hLcWFbGCbk3rYCB.png)

Vanya also explains with the help of a quadrant graph of known — unknown framework, the black oval marks the spectrum of observability and monitoring being a part, as showcased by the white color in the known quadrant. The outward pushing arrows denote that the more we expand our monitoring scope, the more we will understand the system failures.

In other words, we can infer observability as a measure of how well we can understand the internal state of the system using only its outputs that we are monitoring. She further explains from a QA’s perspective. It means observing our systems and making some hypotheses on how the system is behaving in production.

![](https://cdn-images-1.medium.com/max/3998/0*2mGZnOMMReybJROR.png)

She also further explains interdependency with an example Latency — a metric that is a known symptom that we should all monitor from a monitoring perspective, but as soon as we get an alert, we need to observe and investigate from the logs and trace the actual reason for increasing latency, explaining the interrelationship between observability and monitoring.

***[CMS testing](https://www.lambdatest.com/learning-hub/cms-test-case-template?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) is required to ensure a content management system’s functionality, performance, security, and usability remain smooth.***

## Pillars of Observability

![](https://cdn-images-1.medium.com/max/3998/0*zi8vi-q905rqj0PJ.png)

Moving forward, Vanya talks about the three main pillars of observability: Metrics, Traces, and Logs

* Metrics are the key pointers that define the health of your system. You can set up monitoring for these metrics.

* Traces map the user’s journey through the various systems. Traceability also deals with how you can audit the complete business process.

* Logs are actual logs emitted by the events that occurred, which also help to take the decision and debug at the info level.

## What’s your Observability Strategy?

Vanya adds some of the questions that should come to our mind when planning our observability strategy:

Are we able to do a post-mortem of our production issues? Are we able to do root cause analysis and debugging? How is your software robustness at any point in time? How are you designing your system for debuggability?

![](https://cdn-images-1.medium.com/max/3998/0*2JrP1UkWOicBjwXW.png)

And most importantly, how is observability a first-class concern in your software development life cycle or your various cross-functional requirements?

In the next section, Vanya shared some important, relevant tenets when considering our observability strategy.

As a quality engineer, looking at the entire part of the production is extremely relevant and important.

How am I delivering software? How am I writing software? How are your stories being groomed? How are the acceptance criteria for your story being identified? and How QA’s are evangelizing observability as a first-class concern across the software value chain of development?

Next, let’s look at some other key aspects of observability strategies.

***Streamline your mobile app testing process with our tutorial on [Xamarin Test Cases](https://www.lambdatest.com/learning-hub/xamarin-test-case-template?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) Template. Learn how to create comprehensive test cases efficiently.***

## Designing your telemetry data right

![](https://cdn-images-1.medium.com/max/3998/0*rdWW3iggyjLMd2ds.png)

Vanya talks about designing your telemetry data. In the days of monolith architecture, she worked with single processes and human-readable logs.

With the evolution of serverless and managed services from a cloud perspective, the idea is to deliver machine-readable logs. The switch from human-readable logs to machine-readable logs needs to happen, and how we define the right structure of the telemetry data becomes extremely critical.

Further, Vanya discusses conventions for designing telemetry data that teams must follow.

![](https://cdn-images-1.medium.com/max/3998/0*oHNvPUxdS1Vsc1XB.png)

## Separation of Concern

Separation of concern is a widely understood principle from designing classes or functions. We practice separation of concern to the nth level. Vanya explains to the viewers the need to practice separation of concern in observability. The aim of a developer or a quality engineer is always to observe their system reliably; even if the system were to go down, they should be able to observe what happened and why it happened, bringing reliability into the picture.

They need to decouple their data sources from their data syncs and take out the observability data blast radius of their current system and services deployment to an outside location right think about some system so that even if something happens to the operational system, the logs are always available to debug.

![](https://cdn-images-1.medium.com/max/3998/0*GJr0hF8HLTEBcR_m.png)

***Optimize your [retail application test cases](https://www.lambdatest.com/learning-hub/retail-testing-test-cases?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) testing process with 267 efficient test cases for comprehensive analysis. Ensure seamless customer experience and efficient operations.***

## What to trace and log?

She then shares her insights on the other dimensions we should consider, such as how we manage our systems’ capacity and the cost implications of storing large logs.

![](https://cdn-images-1.medium.com/max/3998/0*7ivipMgr_pQv33lr.png)

Observability is Evolutionary; as we talk about the knowns and unknowns, the possibilities are endless. The more we observe, the more we understand our system; how do we evolve our monitoring dashboards? How do we cut down the noise on the dashboard? How do we reduce the noise on the alarms we have set up on top of those monitoring dashboards? How do we improve our logging? How do we improve our traces? How do we log the most optimum information to do root cause analysis?

## Antipatterns to watch for

Vanya then shares some of the important antipatterns we must watch out for a while planning our observability strategy.

![](https://cdn-images-1.medium.com/max/3998/0*77P1fHP7pLL5keTD.png)

## Are you testing in production?

![](https://cdn-images-1.medium.com/max/3998/0*3_m4XyGRheZVo93K.png)

Vanya then further explains observability is all possible permutations of full and partial failure of your application ecosystem. Testing is your best effort to verify the correctness of the product you’re building, whereas monitoring is the predictable failure.

She further talks about embracing the need for [testing in production](https://www.lambdatest.com/blog/testing-in-production-a-detailed-guide/?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=blog) by monitoring and observing the entire ecosystem and how everything is coming together in production.

***Discover the top 60 essential [Healthcare Domain Test Cases](https://www.lambdatest.com/learning-hub/healthcare-domain-test-case-examples?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=learning_hub) along with its importance, types and usage for better understanding.***

## Wrapping Up

![](https://cdn-images-1.medium.com/max/3998/0*be4G9h9hQPZEMgho.png)

As wrapping up her talk, she gave an important tip to follow about how we should embrace the chaos and not try to overcontrol it because things will never be fully in control and the ability to cope with this dynamism and the ability to embrace this chaos is something that’s going to help us become better quality engineers.

## Q&A Session:

![](https://cdn-images-1.medium.com/max/3998/0*lPZ6r1LSM-oaU_1w.png)

Before wrapping up, Vanya answered several questions the viewers raised. Here are some insightful questions from the session:

**Q. How do you verify that Observer data is being analyzed effectively and that insights and recommendations generated from this data are accurate and actionable?**

A: To achieve effective observability, teams should start by thinking about what data they need to capture and emit from their application in the form of logs, traces, or metrics. Guidelines should be created for autonomous teams, ensuring the data quality is good and actionable. This requires effort, and it’s an iterative process. Teams must work together to create an observability strategy that promotes high-quality observability data, which can be used as a feedback loop to improve the system continuously.

**Q. How can a QA with no microservices experience learn about observability? Any advice or recommended steps to take, such as using a playground to practice and gain insights from testing in production?**

A: To learn about observability, set up an open-source tool like Eager in your Docker container and explore the example application. Analyze how information is collected, traces are created, and context is passed between services. Make changes to the application to learn more. This hands-on approach will help you understand observability’s first principles. Additionally, many great articles and talks are available to supplement your learning.

**Hope You Enjoyed The Webinar!**

We hope you liked the webinar. In case you missed it, please find the webinar recording above. Share this webinar with anyone who wants to learn more about moving forward with an [effective test automation](https://www.lambdatest.com/blog/effective-test-automation-strategy/?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=blog) strategy. Stay tuned for more exciting [LambdaTest Webinars](https://www.lambdatest.com/webinar/?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=webpage). You can also subscribe to our newsletter [Coding Jag](https://www.lambdatest.com/newsletter/?utm_source=devto&utm_medium=organic&utm_campaign=may02_kj&utm_term=kj&utm_content=webpage) to stay on top of everything testing and more!

That’s all for now, happy testing!