Persisting Sessions Using AWS ElastiCache
Persisting Sessions Using AWS ElastiCache

CLOUD LABS

Persisting Sessions Using AWS ElastiCache

In this Cloud Lab, you’ll explore session affinity and the Redis session storage. These fundamental elements ensure stable and efficient session management for scalable web applications.

9 Tasks

intermediate

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of session affinity in AWS and its significance in application session management
Hands-on experience setting up a Redis session storage for robust session management
The ability to deploy scalable web applications using AWS services for efficient session management
A thorough understanding of Amazon Elastic Compute Cloud (EC2) and Auto Scaling groups

Technologies
AWS logoAWS
ElastiCache
Redis
ALB
EC2
Cloud Lab Overview

Amazon Web Services (AWS) provides numerous tools and services to support scalable web applications. Among these tools, session affinity and Redis play key roles as the session storage. Session affinity is for web applications that store session information to ensure that a client consistently connects to the same instance. Redis, an efficient in-memory data store, offers centralized session management and guarantees session data accessibility irrespective of the state of individual instances.

In this Cloud Lab, you’ll initiate an Auto Scaling group on AWS to deploy your application across two EC2 instances. Next, you will learn about the power of AWS’s Elastic Load Balancing for traffic distribution while preserving session affinity. Lastly, you will set up a Redis session store, which forms the backbone of robust and streamlined session management.

By the end of this Cloud Lab, you will have hands-on experience in session management within the AWS environment to implement both session affinity and a Redis-based session storage for optimized session management in scalable web applications.

The following is the high-level architecture diagram of the infrastructure that you will create in this Cloud Lab.

Architecture diagram
Architecture diagram

Cloud Lab Tasks
1.Introduction
Getting Started
2.Session Affinity and Auto Scaling Group
Create a Launch Template
Create an Application Load Balancer
Create an Auto Scaling Group
Test and Enable Session Affinity
3.Redis Session Store
Create a Redis Cluster
Update Application and Test Redis Session Store
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image