Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
Active -Active Cross-Region Redis Replication

AWS introduces Cross-Region Replication this year for an Active - Passive setup (Global DataStore). That means that there is a primary Redis-Cluster for Read/Write and a Secondary cluster for Reads.

In my case, we want to use Active - Active Redis in different regions. An initial thought is to manually synchronize the Redis clusters with Kinesis streams and Lambda functions get triggered whenever there is a write and update the other region, e.g. when a write happens in region A, a Lambda updates the Redis in Region B and vice versa. This allows to write in both regions.

Is it possible to get Active Active working with Global Datastore?

or would a Global Datastore work just as well as the manual solution (in terms of latency) when write operations always go to the same region where the primary Redis cluster is deployed??

Any feedback is welcome

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Unfortunately at this time there is no AWS Solution for master-master within ElastiCache.

Here are some of the solutions you could do:

  • Within your application use write endpoint and read endpoint for Redis, the write endpoint would target the primary write global datastore, the read would target the local read datastore
  • Write to a local region resource (such as DynamoDB), have Lambda trigger and write to the primary write global datastore.
  • Write to a local region queue/stream such as SQS or Kinesis Data Streams (which supports a Lambda consumer) and have Lambda consume and write.

Any of the solutions will have a degree of latency between, option 1 does a direct write whereas the other 2 allow the process to happen in the background. The decision here would be based on your application (can it wait for the write to be done, or dos it need to happen in the flow).

Additionally if this is for writing a cache, could you just use cache priming instead? By this I mean generating a flattened cache via a script to ensure your redis cluster is always up to date.

over 4 years ago · Santiago Trujillo Relatório

0

How about connecting the different regions in the same Transit VPC so that you can access the read/write endpoint from any (connected) region?

https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/elasticache-vpc-accessing.html#elasticache-vpc-accessing-different-vpc-different-region

Not tested yet, I am currently trying to implement this, but the corresponding CloudFormation template from AWS Console is broken.

However, the solution should still do the trick, of course with an accepted lag, but at least there should not be additional work to maintain the local region resource, Lambda, etc.

How does this sound?

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda