We have 2 sql server replicas in Always On cluster and when we tested for performance issues we saw that only the primary is working (read and write).
the primary is set to read-write and the secondary is set to read only intent, we want to send the simple select queries to the secondary replica, while the write queries will be sent to the primary.
is there a way to configure that without making 2 different services with 2 different connection strings for the 2 cases (first is read-write, the second is read-only).