#ATAGTR2023 Speaker

Welcome to the 8th Edition of the Global Testing Retreat 2023!

About Speaker

Kavin Arvind is a Cloud Performance Architect with around 13 years of experience in Performance Engineering and 3+ years in Chaos Engineering, Site Reliability Engineering and Observability. He is specialized in AWS Cloud and in the Design & Implementation of Open Source Cloud frameworks for Performance, Resiliency and Observability. He Has involved has creation of automated Performance & Resilience Engineering frameworks and implementing Continuous integration & Continuous delivery to perform early performance ,resilience and accessibility testing. He has presented and published Whitepapers and blogs related to Cloud Performance Testing, Chaos Engineering and Observability at Softwareย Conferences.

Kavin Arvind Ragavan

Performance Architect at ย Cognizant

Hands on Lab (60 mins) - Leveraging OpenAI and AWS Lambda for Automated Performance Analysis

Leveraging OpenAI and AWS Lambda for Automated Performance Analysis

ย 

In this hands-on workshop, participants will learn how to utilize OpenAI’s powerful language model through API, in conjunction with AWS Lambda and S3 Event Triggers to automate performance test analysis. The workshop will cover the process of setting up AWS Lambda functions, integrating them with OpenAI’s API, and triggering the Lambda functions based on S3 events.

ย 

In the first part of this hands-on workshop, participants will be introduced to the powerful capabilities of OpenAI’s language model, GPT-4, and how it can be leveraged in conjunction with AWS Lambda for automating performance test analysis. The workshop will provide an overview of AWS Lambda, a serverless computing service that lets you run your code without provisioning or managing servers, and S3 Event Triggers, which can be used to set up a notification to trigger a Lambda function.

ย 

The second part of the workshop will drive into the practical aspects of setting up AWS Lambda functions, integrating them with the OpenAI API, and triggering these functions based on S3 events. Participants will learn how to create Lambda functions for initiating load tests, aggregating results,ย and performing OpenAI analysis. They will also learn how to configure S3 event notifications to trigger these Lambda functions, thereby creating an automated workflow.

ย 

The final part of the workshop will focus on the analysis of performance test results. Participants will learn how to read CSV data from S3 in a Lambda function, send this data to OpenAI for analysis, and understand the analysis results and ways to get accurate reports. They will also learn how to format these results and write them to a file in an S3 bucket. By the end of the workshop, participants will have a solid understanding of how to leverage OpenAI and AWS Lambda for performance test analysis, providing them with a powerful tool for their testing toolkit.

ย 

Table of Contents and Duration:

  1. Part 1- Introduction to OpenAI, AWS Lambda, and S3 Event Triggers (10 minutes)
    • Overview of OpenAI and GPT-3
    • Overview of AWS Lambda
    • Overview of S3 Event Triggers
    • Use case explanation: Performance Test Analysis
    1. Part 2- Setting up AWS Lambda (30 minutes)
      • Creating Lambda functions for load test initiation, results aggregation, and OpenAI analysis
      • Understanding Lambda function structure
      • Importing necessary libraries as Lambda layers

    Integrating OpenAI with AWS Lambda

      • Setting up OpenAI API key
      • Making API requests from Lambda
      • Understanding the response from OpenAI API

    Setting up S3 Event Triggers

      • Creating S3 buckets for storing test results and analysis
      • Configuring S3 event notifications to trigger Lambda functions
      • Understanding the flow of data and triggers
  2. Part 3- Analysing Performance Test Results (15 minutes)
    • Reading CSV data from S3 in Lambda
    • Sending data to OpenAI for analysis
    • Understanding the analysis results
  3. Q&A and Wrap-up (5 minutes)

Lab Requirements:

ย 

  • A computer with internet access and python setup
  • An AWS account with necessary permissions to create and manage Lambda functions, S3 buckets, IAM roles
  • An IDE (Visual Studio code) for writing and viewing code

ย 

Prerequisites for Participants:

ย 

  • Basic understanding of Python programming
  • Familiarity with AWS services, particularly AWS Lambda, S3, and S3 Event Triggers
  • Basic understanding of REST APIs and how to interact with them
  • Familiarity with performance testing concepts would be beneficial but not mandatory
  • An OpenAI API key (instructions for obtaining this will be provided in the workshop)
Hear what Kavin has to say about the hands on lab session
Scroll to Top