Hi @Charlie from Imagine - good question.
The default Medplum Elasticache config uses Multi-AZ with auto-failover. By default, one replication group, so there are multiple nodes.
This is not a perfect solution, but it is comparable if not better than RDB and/or AOF. See https://lipanski.com/posts/persistence-in-elasticache-redis
With that said, we are not opposed to enabling RDB and/or AOF. There are some operational considerations (performance, cost, etc).
We have also debated adding support for SQS/SNS as a BullMQ replacement. That would provide a proper durable service. There are operational considerations here too.
We are open to discussion, if you'd like to discuss more offline, please send a DM and we can schedule some time.
c
Charlie from Imagine
09/13/2023, 10:21 PM
Does multi-az failover account for restarts?
c
cody
09/13/2023, 10:56 PM
yes. patches and upgrades should happen sequentially on secondary, swap to primary, etc.