C# configuring for Multiple seed connection

The Aerospike Knowledge Base has moved to https://support.aerospike.com. Content on https://discuss.aerospike.com is being migrated to either https://support.aerospike.com or https://docs.aerospike.com. Maintenance on articles stored in this repository ceased on December 31st 2022 and this article may be stale. If you have any questions, please do not hesitate to raise a case via https://support.aerospike.com.

Synopsis:

Client needs to connect to multiple seed (host) on C#. Path to Solution:

There are 2 Methods to be configured:

// Method 1

AerospikeClient client = new AerospikeClient(policy, new Host("host1", 3000), new Host("host2", 3000));


// Method 2

Host[] hosts = new Host[2];
hosts[0] = new Host("host1", 3000);
hosts[1] = new Host("host2", 3000);
AerospikeClient client = new AerospikeClient(policy, hosts);

How the writing and retrieval of records happening? Suppose I have written record to host1, then how can I retrieve that record from host1 or the whole thing happen automatically?

The client manages a partition map which tells it which node to send each request to.

So the partition map manages write and read record functionality automatically ?

It automatically manages which node to fetch from or write to.

Thanks for you reply