go-gorm / go-gorm/dbresolver

[Feature Request] Ability to use replica for x% of reads

Open
#155 0 comments 0 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
538
Forks
69
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature

A configuration (or `Policy`?) to route x% of read traffic to the replicas. The other traffic would be routed to the primary node.

## Motivation

This is useful when evaluating the performance of a new replica or network configuration. In these scenarios, you may only want to impact 1% of traffic.

## Related Issues

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.