What you are doing?
sequelize(..., {
replication: {
read: [REPLICA],
write: PRIMARY
}
})
sequelize.transaction(() => {
/* Read-only stuff here that requires repeatable reads */
})
What do you expect to happen?
The transaction should execute on the read replica.
What is actually happening?
It executes on the write.