![]() ![]() With this App Engine Memcache integration implemented, we can migrate it to Cloud Memorystore in the next (Module 13) codelab. ![]() If a new user visits the site or an hour has passed, the cache is flushed and replaced with the most recent entries (not to mention a new Visit registered). If the same visitor hits the page, those visits are returned from the cache. If the same user refreshes their browser, it's not optimal to continually create new Visit entities and fetch the most recent visits from Datastore, so we're going to cache those most recent visits. The sample app displays the ten most recent visits to the user. ![]() In order to migrate from App Engine Memcache, add its usage to the existing Flask and App Engine NDB app resulting from the Module 1 codelab. Survey How will you use this tutorial? Read it through only Read it and complete the exercises How would you rate your experience with Python? Novice Intermediate Proficient How would you rate your experience with using Google Cloud services? Novice Intermediate Proficient A working Module 1 App Engine app (complete its codelab or copy the app from the repo).Basic knowledge of developing and deploying App Engine apps.Working knowledge of common Linux commands.A Google Cloud Platform project with an active GCP billing account.Add caching to a basic Python 2 Flask App Engine NDB app.Use the App Engine Memcache API/library.If your app does not use App Engine Memcache, you can skip Modules 12-13, or you can do these codelabs as an exercise to become familiar with Memcache migration. We add usage of Memcache in this Module 12 tutorial then migrate to Cloud Memorystore next in Module 13. This codelab teaches you how to include and use App Engine Memcache to the sample app from the Module 1 codelab. While initially focusing on the earliest Cloud users, primarily App Engine (standard environment) developers, this series is broad enough to include other serverless platforms like Cloud Functions and Cloud Run, or elsewhere if applicable. Doing so makes your apps more portable and gives you more options and flexibility, enabling you to integrate with and access a wider range of Cloud products and more easily upgrade to newer language releases. The Serverless Migration Station series of codelabs (self-paced, hands-on tutorials) and related videos aim to help Google Cloud serverless developers modernize their appications by guiding them through one or more migrations, primarily moving away from legacy services. ![]()
0 Comments
Leave a Reply. |