Hi all. I’m new to GoLang, and coming from a PHP background, is there a need to create a kind of “Aerospike Instance” which is re-used over and over rather than declaring one on each use?
To give an example, in PHP I would declare something like
$aerospikeClient which would either contain
null or be an instance of
Aerospike - which I can then check… if
is_null then I can create an instance and return that, otherwise I just return the instance which has already been created - if that makes sense.
As I’m unsure exactly how GoLang works in this instance, is there a need to do the same, or do I simply create the Client each time?
This is in a web based environment, so HTTP server instance I guess