Professional Documents
Culture Documents
Advanced Database Management
Advanced Database Management
Cassandra is a NoSQL database that is designed to handle large amounts of data and high levels of
traffic. It is also highly scalable, meaning that it can be easily expanded to meet Swiggy’s growing
traffic and users. Additionally, Cassandra is very reliable and has been proven to be able to handle
even the most demanding workloads.
Swiggy could benefit from Cassandra for managing user profiles, order data, and other
operational data.
Being a NoSQL Database it uses flexible data models that can adapt to changes in data
structures and are capable of scaling horizontally to handle growing amounts of data.
Features:
High Write Throughput:
● Cassandra is designed for high write throughput and can handle a massive
number of write operations per second.
● This is advantageous for Swiggy's transaction data, which involves a significant
volume of order updates and changes.
Multi-Datacenter Replication:
● Cassandra supports multi-datacenter replication, making it suitable for
geographically distributed applications like Swiggy.
● DynamoDB also offers global tables, but Cassandra provides more granular
control over replication and data consistency.
Cost Control:
● Cassandra's open-source nature allows more control over infrastructure costs,
especially when managing and optimizing the database cluster.
Requirements:
Swiggy has become a very popular food delivery app thus attracting a large traffic and requires a
database that is capable to adapt to changes and support huge transactional workload.
Existing Solution:
Swiggy currently uses DynamoDB to store transactional data, restaurant inventory and
customer database in DDB tables and also provides DDB streams for CDC logs. However,
DynamoDB uses a strict schema structure, which can be less accommodating for applications
with changing data needs.
Feature
Conclusion:
In summary, Apache Cassandra presents itself as a compelling alternative to DynamoDB,
offering greater flexibility in data modeling, more robust querying capabilities, cost control
advantages, and vendor independence. This transition to Cassandra could enhance efficiency
and scalability in managing Swiggy's transactional and CDC log data.