Hey Bhaskar,
This forum is meant for more general, high-level discussion of the platform and services, and programming with App Engine, and specific-issue posts of this nature are considered off-topic. You should really post a question like this to a website designed for the purpose, such as Stack Overflow, which we also monitor. Over there, you'll find a much larger user-base and you'll be much more likely to get useful responses.
Just some advice before you post there: it seems as though your issue is not adequately explained in your post. Consider attempting to reason about the problem as somebody with no access to your system other than the information in the post, and you might realize how difficult and limiting it is to debug from the other side of the internet.
Even just some simple links can help improve a question - linking to
Aerospike's documentation for Go connections as a start. Also, what "unable to connect" means in this context is highly important. Is there any error output? Have you checked the logs on your instance?
It seems as though the ultimate problem here is not being familiar with the platform you're building on.
App Engine limits runtimes from making arbitrary port connections, which is certainly something that will be needed to run a line like:
So, it seems that you might want to deploy your application as a
Managed VM using the go runtime. This will allow your code to make arbitrary port connections. That, or use a GCE instance which can connect on its network interface as a proxy to your Aerospike DB.