Allow for read/write client separation #324
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
up-for-grabs 🙏🏽
Happy to consider a pull review to address this issue
Is your feature request related to a problem? Please describe.
Related to this discussion
Describe the solution you'd like
The caller should be allowed to pass in a read and/or write endpoints. If omitted the default account endpoint to be used for operations of both types.
If
writeEndpoint
is supplied the underlying write operations i.e. all methods in theIWriteRepository
andIBatchRepository
should use it, similarly for the reads.This might require storing 2 versions of the client on the struct as a private properties... 🤷♂️
Describe alternatives you've considered
Implementation still needs ironing out
Additional context
Currently scenarios requiring multi region setup with strong consistency cannot be properly satisfied, where writes should only occur into a single region.
The text was updated successfully, but these errors were encountered: