{"id":16011,"date":"2024-07-10T10:27:49","date_gmt":"2024-07-10T17:27:49","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=16011"},"modified":"2025-06-13T20:18:32","modified_gmt":"2025-06-14T03:18:32","slug":"making-gcp-cloud-function-calls-faster","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/","title":{"rendered":"Making GCP Cloud Function Calls Faster"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Recently my wife and I have been watching reruns of some TV programs containing Jeremy Clarkson (Top Gear, The Grand Tour, Clarkson\u2019s Farm). Despite the buffoonery he is quite a clever chap, although will likely be remembered for thinking \u201cSpeed and Power\u201d is the answer to everything.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Couchbase offers speed and Power in abundance through its architecture. Most Relational databases are monolithic in their design meaning that they can only be scaled vertically, not horizontally. Unlike most NoSQL databases each service that makes up Couchbase\u2019s data platform can be put on different nodes meaning that each service could be scaled horizontally and vertically too. This allows you to put the power down exactly where it\u2019s needed and attain more speed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Despite the entertainment value of Clarkson, speed and power isn\u2019t always the answer, especially if the problem is at the design level. Power through hardware can help hide the issue but it\u2019s not going away and is wasteful. Speed, however, is often essential in this day and age where slow has been called \u201cthe new down\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In a recent engagement we found some developers using a pattern that could be improved upon in their Google Functions using one simple tip. In this blog post, we&#8217;ll share how we fine-tuned<\/span> <span style=\"font-weight: 400;\">the engine (function code) and catapulted performance down the last straight, over the line, and onto the next lap.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Keeping with the TV theme, let\u2019s pretend that you want to watch your favorite TV series on a streaming service. The process would look something like this:<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><span style=\"font-weight: 400;\">Turn on TV\/Device<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Open App<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Log in to service<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Choose program<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Watch Program<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Choose Program<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Watch Program<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Etc. etc. etc.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">How annoying would it be if the service provider made you log in each time you wanted to watch another program? Probably enough to move to another service, right?!?<\/span><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-16012\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-1024x372.png\" alt=\"\" width=\"900\" height=\"327\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-1024x372.png 1024w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-300x109.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-768x279.png 768w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-1536x558.png 1536w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM-1320x479.png 1320w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png 1916w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Now let\u2019s say this is a call to your database from a cloud function.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Turning on the TV and opening the App would be writing and deploying your functions. We would only do these steps once and so will put these to one side and continue with the rest of the list.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">On the left image you can see a repeated need to log in, whilst on the right the login process only happens once and that login data is reused for the length of the session. As you would expect it takes less time to process a request for information if the login details have already been checked and do not have to be sent through each time.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This is where not testing at scale really becomes an issue. For argument&#8217;s sake let&#8217;s say the authentication took 1 ms (your mileage will vary depending on type of authentication, distance between client and database, and a whole host of other things. Now 1ms might not sound like a lot and if looking at just one occurrence of a run you could say was not an issue. What if instead of just 1 request there were thousands of requests happening using this function? Suddenly thousands of milliseconds per second are being wasted. When you\u2019re being charged for how long these functions take that will cost you.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Top Tips for a Hot Lap Time<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Go Global<\/strong>: When setting up your Cloud Function, opt for a globally-scoped database connection. This gives your function a perfect start to access your Capella cluster from anywhere in the grid.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Spend Less Time in the Pits<\/strong>: Resist the urge to create a new Couchbase <\/span><span style=\"font-weight: 400;\">Cluster<\/span><span style=\"font-weight: 400;\"> object every time your function gets called. That&#8217;s like doing a pit stop on every lap \u2013 a tad excessive, wouldn&#8217;t you say? Instead, create the <\/span><span style=\"font-weight: 400;\">Cluster<\/span><span style=\"font-weight: 400;\"> object once, then store it for your function to reuse.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>Tune That Idle Time<\/strong>: Set <\/span><span style=\"font-weight: 400;\">maxIdleTimeMS<\/span><span style=\"font-weight: 400;\"> to <\/span><span style=\"font-weight: 400;\">60000<\/span><span style=\"font-weight: 400;\"> (that&#8217;s one minute for us mere mortals with only seconds on a stop watch). This automatically closes connections after they&#8217;ve been idle for a minute, preventing timeouts and keeping your serverless functions sprightly.<\/span><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><strong>Concurrency is Key<\/strong>: When creating your Google Cloud function:\u00a0<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Embrace the 2nd Gen: It&#8217;s like upgrading from a Ford Model T to an F1 car \u2013 it handles multiple concurrent requests and reduces connection load by letting your function share a single <\/span><span style=\"font-weight: 400;\">Cluster<\/span><span style=\"font-weight: 400;\"> object.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Crank Up the Concurrency: Increase the concurrency setting to minimize those dreaded cold starts and give your latency a turbo boost. Think of the cold start as a standing start in a race compared to a rolling start where the participant in the race is up to speed. In a cold\/standing start the participant has to expend energy getting up to speed and then complete the activity.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h3>Example: Python Cloud Function Connecting to Capella<\/h3>\n<pre class=\"nums:false lang:python decode:true\">from couchbase.cluster import Cluster\r\nfrom couchbase.auth import PasswordAuthenticator\r\n\r\n# Replace with your actual Capella connection string\r\nconnection_string = 'couchbases:\/\/&lt;YOUR-CLUSTER-ENDPOINT&gt;'\r\nauth = PasswordAuthenticator('&lt;YOUR-USERNAME&gt;', '&lt;YOUR-PASSWORD&gt;')\r\n\r\ncluster = None\u00a0 # Store the cluster object globally\r\n\r\ndef your_function_name(request):\r\n  global cluster\r\n\r\n  if cluster is None:\r\n\u00a0\u00a0  cluster = Cluster(connection_string, authenticator=auth)\r\n\r\n    # Now you can use the 'cluster' object to interact with Capella\r\n    bucket = cluster.bucket('travel-sample')\r\n\r\n    # ... your Capella operations here\r\n\r\n<\/pre>\n<p><span style=\"font-weight: 400;\">There you have it! A Python-flavored example to optimizing your Google Cloud Functions with Couchbase Capella.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Go on, give it a go, how hard could it be?<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently my wife and I have been watching reruns of some TV programs containing Jeremy Clarkson (Top Gear, The Grand Tour, Clarkson\u2019s Farm). Despite the buffoonery he is quite a clever chap, although will likely be remembered for thinking \u201cSpeed [&hellip;]<\/p>\n","protected":false},"author":79540,"featured_media":16012,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1814,1815,2225,9417,9139],"tags":[2101,9637],"ppma_author":[9498],"class_list":["post-16011","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application-design","category-best-practices-and-tutorials","category-cloud","category-performance","category-python","tag-gcp","tag-google-cloud"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.7.1 (Yoast SEO v25.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Making GCP Cloud Function Calls Faster - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Making GCP Cloud Function Calls Faster\" \/>\n<meta property=\"og:description\" content=\"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-10T17:27:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T03:18:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1916\" \/>\n\t<meta property=\"og:image:height\" content=\"696\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Richard Douglas - Solutions Engineer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Richard Douglas - Solutions Engineer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\"},\"author\":{\"name\":\"Richard Douglas\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9385a347fcb35236ac92e828eee1b3e1\"},\"headline\":\"Making GCP Cloud Function Calls Faster\",\"datePublished\":\"2024-07-10T17:27:49+00:00\",\"dateModified\":\"2025-06-14T03:18:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\"},\"wordCount\":849,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\",\"keywords\":[\"gcp\",\"google cloud\"],\"articleSection\":[\"Application Design\",\"Best Practices and Tutorials\",\"Couchbase Capella\",\"High Performance\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\",\"name\":\"Making GCP Cloud Function Calls Faster - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\",\"datePublished\":\"2024-07-10T17:27:49+00:00\",\"dateModified\":\"2025-06-14T03:18:32+00:00\",\"description\":\"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png\",\"width\":1916,\"height\":696},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Making GCP Cloud Function Calls Faster\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9385a347fcb35236ac92e828eee1b3e1\",\"name\":\"Richard Douglas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/d4f5d09e0ff867f04c4e717c01a0732e\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg\",\"caption\":\"Richard Douglas\"},\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/richard-douglas\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Making GCP Cloud Function Calls Faster - The Couchbase Blog","description":"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/","og_locale":"en_US","og_type":"article","og_title":"Making GCP Cloud Function Calls Faster","og_description":"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:","og_url":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/","og_site_name":"The Couchbase Blog","article_published_time":"2024-07-10T17:27:49+00:00","article_modified_time":"2025-06-14T03:18:32+00:00","og_image":[{"width":1916,"height":696,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png","type":"image\/png"}],"author":"Richard Douglas - Solutions Engineer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Richard Douglas - Solutions Engineer","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/"},"author":{"name":"Richard Douglas","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9385a347fcb35236ac92e828eee1b3e1"},"headline":"Making GCP Cloud Function Calls Faster","datePublished":"2024-07-10T17:27:49+00:00","dateModified":"2025-06-14T03:18:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/"},"wordCount":849,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png","keywords":["gcp","google cloud"],"articleSection":["Application Design","Best Practices and Tutorials","Couchbase Capella","High Performance","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/","url":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/","name":"Making GCP Cloud Function Calls Faster - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png","datePublished":"2024-07-10T17:27:49+00:00","dateModified":"2025-06-14T03:18:32+00:00","description":"Follow these handy hints for a connection between your Google Cloud Functions and Capella that will reduce round trip times and get pulses racing:","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2024\/07\/Screenshot-2024-07-10-at-10.59.18\u202fAM.png","width":1916,"height":696},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/making-gcp-cloud-function-calls-faster\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Making GCP Cloud Function Calls Faster"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/9385a347fcb35236ac92e828eee1b3e1","name":"Richard Douglas","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/d4f5d09e0ff867f04c4e717c01a0732e","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg","caption":"Richard Douglas"},"url":"https:\/\/www.couchbase.com\/blog\/author\/richard-douglas\/"}]}},"authors":[{"term_id":9498,"user_id":79540,"is_guest":0,"slug":"richard-douglas","display_name":"Richard Douglas - Solutions Engineer","avatar_url":{"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg","url2x":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/05\/Richard.jpeg"},"author_category":"","last_name":"Douglas","first_name":"Richard","job_title":"","user_url":"","description":"Solutions Engineer"}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/16011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/79540"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=16011"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/16011\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/16012"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=16011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=16011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=16011"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=16011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}