hands-on lab

Managing a Memcached Cluster Using Google Cloud Memorystore

Beginner
45m
59
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

Because new applications require to be reliable and super fast, caching is one of the solutions you should implement in an application to guarantee no time is spent without any reason. Suppose you have developed an application that is distributed on a few different servers. Your application implements sessions for each user, so you need to store and handle this session somewhere. Because your application is distributed, you can't store the sessions on the local machines, but you need to find another solution. Well, a caching solution is what you are looking for. In particular, Memcached is an object caching system. It allows you to store key-value fields where the key needs to be unique, and it's used to set and then retrieve data; the value is the object you want to store (such as the session object in the previous example).

Because of this importance, Google offers an in-memory caching solution through Google Memorystore. It is a scalable, secure, and highly available in-memory service for both Redis and Memcached.

In this lab, you will create a Memcached cluster, you will connect to it and perform some operations, and you will finally scale it out.

Learning Objectives

Upon completion of this lab you will be able to:

  • Create a Memcached cluster
  • Connect to a Memcached cluster and perform caching operations
  • Scale out a Memcached cluster

Intended Audience

This lab is intended for:

  • Google Professional Data Engineer (PDA) certification candidates
  • Solutions Architects who want to build and manage an in-memory caching solution
  • Developers who need to set a caching middleware between their applications and databases

Prerequisites

Basic Memcached prerequisites are preferred but not required.

Environment before
Environment after
About the author
Avatar
Stefano Cascavilla
Junior Data Engineer
Students
39,380
Labs
106
Courses
2
Learning paths
10

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics
Lab steps
Signing In to the Google Cloud Console
Creating a Google Memorystore Memcached Cluster
Connecting and Performing Operations to the Memcached Cluster
Scaling the Memorystore Memcached Cluster