PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, November 12, 2022

[FIXED] How to connect Google App Engine Memcache from remotely

 November 12, 2022     google-app-engine, memcached, php     No comments   

Issue

I have a php webapplication running on my webserver. Now I want to outsource the memcache and would like to try the google cloud/app engine memcache service.

How do I connect to the memcache service from outside (from my webserver)? Is that possible at all?

I found the documentation on how to use the service here https://cloud.google.com/appengine/docs/php/memcache/#PHP_PHP_memcache_implementation

But I don't see any description on how to connect to the memcache service remotely.

Probably Memcache::addServer() would do the job (http://php.net/manual/de/memcache.addserver.php) But, where do I find the right settings (host, port, etc) to connect to the service? Still, I am not even sure if this is possible at all.

Thanks for any advice Georg


Solution

This is not an architectural advise or even a best practise.

There is no managed endpoint to connect to memcahce in AE environment.

The only way to establish some sort of a link to debug is to expose the get and the put via web service as mentioned below.

Expose a web-service in appengine and connect remotely.  Secure it by oauth or encrytion.


Answered By - varun
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing