Leveraging AWS SNS/SQS for Real-Time Cache Synchronization in Distributed Systems

Authors

  • Ananth Majumdar USA Author

DOI:

https://doi.org/10.47363/JMCA/2023(2)E124

Keywords:

Cache Synchronization, Distributed Systems, AWS SNS, AWS SQS, Cloud Computing, Eventual Consistency, Microservices, Scalability

Abstract

In distributed systems, maintaining consistency across multiple caches presents a significant challenge, often leading to data inconsistencies and degraded application performance. This paper proposes and evaluates a novel approach to cache synchronization using Amazon Web Services (AWS) Simple Notification Service (SNS) and Simple Queue Service (SQS). The proposed system leverages the pub-sub model of SNS combined with the reliable message queuing of SQS to create a scalable and robust cache synchronization mechanism. We present the architecture, implementation details, and performance analysis of this system, demonstrating significant reductions in database load and improvements in response times while ensuring eventual consistency across distributed caches.

 Comparative analysis with alternative solutions highlights the advantages of the SNS/SQS approach in terms of scalability, reliability, and ease of implementation. This research contributes to the field of distributed systems by offering a practical, cloud-native solution to the cache synchronization problem, applicable to a wide range of applications requiring consistent data across multiple instances or services.

Author Biography

  • Ananth Majumdar, USA

    Ananth Majumdar, USA. 

Downloads

Published

2023-11-20