Managing a Memcached Cluster Using Google Cloud Memorystore

Lab Steps

lock
Signing In to the Google Cloud Console
lock
Creating a Google Memorystore Memcached Cluster
lock
Connecting and Performing Operations to the Memcached Cluster
lock
Scaling the Memorystore Memcached Cluster

Ready for the real environment experience?

DifficultyBeginner
Time Limit45m
Students16
Ratings
5/5
starstarstarstarstar

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
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students11626
Labs39
Courses1
Learning paths2

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.