Implementing caching in Apigee
Key Takeaways
Implementing response caching using Apigee's ResponseCache policy to improve API performance, reduce costs, and decrease backend load, with a demonstration of deploying the API accelerator and testing caching effects using curl commands.
Full Transcript
hello and welcome to this episode of the apig accelerator Series in this video you'll see how to improve an api's performance by leveraging aags built in caching policies to improve response times lower costs or decrease load on your backend Services while still being able to scale let's take a high Lev look at how this works with a cash response policy say you have appg in front of the API and a request comes in if the response from the API is not in the cash the request will be forwarded to the Target back end once a response is received it is placed into the cache using the key of your choosing and forwarded to the API client on subsequent requests if the cash lookup succeeds the response is sent immediately to the API client without placing additional load on the target back end now that you've seen the high level overview let's see how to deploy the ex accelerator in order to run this sample you need to have an apx instance provisioned with access configured for external traffic and as a user you'll need to have access to deploy the API proxies this can be granted using either the API admin or or admin roles and lastly to deploy the sample you'll need the command line tool shown here good news is that if you're using Google Cloud shell these are already installed this sample can be demonstrated using either the cloud shell quick start tutorial or following the setup instructions in this video we'll use the cloudshell quick start click open in Google cloudshell to open the cloudshell environment once the environment is loaded let's follow the instructions provided in the tutorial first you will want to make sure that you log in using the right account then we'll navigate naate to the right folder and then open the EnV Dosh file there we're going to set the environment variables to reference your epig project the target environment and the external host name next run the included script to deploy the sample to your appg instance this will take about a minute to complete once it completes you'll see a message with the API proxy URL now to test the effect of caching we'll run a curl command that outputs the total response time take note of the total time from the first request we'll run the same request a subsequent time this time the request will be served from cash as can be seen by the lower response time almost 10x faster in my instance all right now that you've seen this policy in action let's take a look at how this is conf configured in apy in a new tab open the API management UI you can navigate to it from the Google Cloud console by searching for apig in the search bar in the API proxies page you should see the basic caching proxy select the proxy and go to the develop tab you'll see several policies but the one you're interested in right now is the response cach policy this is where you configure the cash key to use how long the item should remain in the cach and conditions for which You Should Skip looking up an item from the cach or placing an item into the cache when you're done with this sample you can switch back to the cloudshell editor to provide us feedback and to use the cleanup script to delete the configuration that was deployed to your apig instance thanks for watching I hope this content was useful to you if you have not signed up for apig yet use this link if you have any questions please visit the apog community and subscribe to our channel to see more videos in the apog accelerator series
Original Description
In this video, you'll learn how to implement response caching using Apigee's ResponseCache policy.
For more information on Apigee, please see the documentation → https://goo.gle/4b8lzr9
If you have questions, ask the developer community → https://goo.gle/3pcZML6
To sign up for Apigee → https://goo.gle/3SiZTkF
For more Google Cloud Tech and Apigee videos, subscribe → https://goo.gle/GoogleCloudTech
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Google Cloud Tech · Google Cloud Tech · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
I’m going for it #GoogleCloudCertified
Google Cloud Tech
I had to get #GoogleCloudCertified
Google Cloud Tech
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
Introduction to Generative AI Studio
Google Cloud Tech
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
Introduction to Responsible AI
Google Cloud Tech
Networking updates and CDMC-certified architecture
Google Cloud Tech
Create and use a Cloud Storage bucket
Google Cloud Tech
How to digitize text from documents
Google Cloud Tech
Faster analytical queries with AlloyDB
Google Cloud Tech
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
Introduction to Assured Open Source Software
Google Cloud Tech
BigQuery Cost Optimization: Storage
Google Cloud Tech
BigQuery Cost Optimization: Compute
Google Cloud Tech
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
Vector Support on our radar #GenAI
Google Cloud Tech
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
Kubernetes and multitasking updates!
Google Cloud Tech
GKE: Using Kubernetes Events
Google Cloud Tech
How to configure firewall rules for Cloud Composer
Google Cloud Tech
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
Ensuring requests are set in Kubernetes
Google Cloud Tech
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
How to run #MySQL in Google Cloud
Google Cloud Tech
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
GKE Load Balancing: Overview
Google Cloud Tech
GKE Load Balancing: Best Practices
Google Cloud Tech
Disaster Recovery in GKE
Google Cloud Tech
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
Enable and use GKE Control plane logs
Google Cloud Tech
Compliance in Australia with Assured Workloads
Google Cloud Tech
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
What's Next for Google Cloud?
Google Cloud Tech
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
What is fleet team management in GKE?
Google Cloud Tech
Troubleshoot VPC Network Peering
Google Cloud Tech
Introduction to DocAI and Contact Center AI
Google Cloud Tech
Cloud Run Direct VPC egress explained
Google Cloud Tech
Database deployment options in GKE
Google Cloud Tech
Analyze cloud billing data with #BigQuery
Google Cloud Tech
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
Accelerating model deployment with MLOps
Google Cloud Tech
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
Pricing API on our #Radar
Google Cloud Tech
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
Troubleshooting: Node Not Ready Status
Google Cloud Tech
One weekend until Cloud Next 2023!
Google Cloud Tech
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
#GoogleCloudNext will be demand!
Google Cloud Tech
More on: API Design
View skill →
🎓
Tutor Explanation
DeepCamp AI