Introduces the project, its learning objectives, and prerequisites.
2. Read about mcrouter
Instructs the reader to read a blog post about mcrouter, a memcached protocol router.
3. Running A Replicated Memcached Cluster
Explains how to set up and interact with a replicated memcached cluster using Docker Compose and mcrouter.
4. Running A Sharded Memcached Cluster
Describes how to set up and interact with a sharded memcached cluster using Docker Compose and mcrouter.
5. Build a Go program that can determine the topology of a memcached cluster
Challenges the reader to write a Go program that can differentiate between sharded and replicated memcached clusters by interacting with mcrouter and memcached instances.
Key Things To Learn:
Understand the differences between sharded and replicated datastores.
Learn how to use mcrouter to create both sharded and replicated memcached clusters.
Gain knowledge about the FaceBook Engineering mcrouter by reading the provided blog post.
Learn how to set up and run a replicated memcached cluster using Docker Compose.
Understand how to interact with mcrouter and memcached instances using the nc (netcat) command.
Learn about the set, get, and delete commands in memcached.
Understand the concept of TTL (Time-To-Live) in memcached.
Learn how to read and understand the replicated mcrouter configuration in the docker-compose.yml file.
Learn how to set up and run a sharded memcached cluster using Docker Compose.
Understand the differences in behavior between sharded and replicated mcrouter configurations.
Learn how to read and understand the sharded mcrouter configuration in the docker-compose.yml file.
Learn how to write a Go program that can determine the topology of a memcached cluster.
Understand how to use command-line flags in a Go program.
Learn how to use the Go memcache client to interact with mcrouter and memcached instances from a Go program.
Test the Go program against both sharded and replicated configurations to ensure it can differentiate between them.
Memcached Clusters
https://systems.codeyourfuture.io/projects/memcached-clusters
Sections
1. Introduction
2. Read about
mcrouter
mcrouter
, a memcached protocol router.3. Running A Replicated Memcached Cluster
mcrouter
.4. Running A Sharded Memcached Cluster
mcrouter
.5. Build a Go program that can determine the topology of a memcached cluster
mcrouter
and memcached instances.Key Things To Learn:
mcrouter
to create both sharded and replicated memcached clusters.mcrouter
by reading the provided blog post.mcrouter
and memcached instances using thenc
(netcat) command.set
,get
, anddelete
commands in memcached.mcrouter
configuration in thedocker-compose.yml
file.mcrouter
configurations.mcrouter
configuration in thedocker-compose.yml
file.mcrouter
and memcached instances from a Go program.