hands-on lab

Distributing Data With a WebSocket Amazon API Gateway

Beginner
Up to 1h 30m
24
5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Amazon API Gateway is a fully-managed service aimed at developers who want to create rich and complex APIs in the public AWS cloud. It makes it easy to create, manage, monitor, secure, and scale your API-backed applications. WebSockets are a technology that makes it easy to send and receive data in a bi-directional manner between a server and a web browser.

Learning how to use Amazon API Gateway for WebSockets will make you more effective and versatile when deploying applications with complex needs in the cloud.

In this lab, you will create a new WebSocket Amazon API Gateway, you will implement a stock ticker application using AWS Lambda, and you will see how to use your WebSocket API.

Learning Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Create a new WebSocket Amazon API Gateway
  • Implement WebSocket message handling in AWS Lambda
  • Test your WebSocket API

Intended Audience

  • Candidates for the AWS Certified Developer Associate certification
  • Cloud Architects
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • Amazon API Gateway
  • AWS Lambda
  • NodeJS

The following content can be used to fulfill the prerequisites:

Updates

October 25th, 2023 - Updated the instructions and screenshots to reflect the latest UI

Environment before
Environment after
About the author
Students
66,474
Labs
164
Courses
2
Learning paths
4

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.

Covered topics
Lab steps
Using Amazon API Gateway with WebSockets
Logging In to the Amazon Web Services Console
Creating a new WebSocket Amazon API Gateway
Implementing the WebSocket API's AWS Lambda Functions
Connecting to the Virtual Machine Using EC2 Instance Connect
Testing Your Ticker WebSocket API