- Newest
- Most votes
- Most comments
Yes, you can absolutely use both relational databases (RDBMS) and NoSQL databases together for your mobile iOS app, which is often called a "polyglot persistence" approach.
For your specific needs with structured data, frequent reads, and writes from users, here's how you might approach this:
AWS Database Options:
- For structured data and complex queries:
- Amazon RDS for PostgreSQL or Aurora PostgreSQL-Compatible
- Good for data that requires high transactional integrity and complex relationships
- For high-speed reads and scalable performance:
- Amazon DynamoDB
- Excellent for web and mobile applications with high read requirements
- Provides predictable performance with seamless scalability
When to use each:
- Use RDS/Aurora for complex data relationships, ad-hoc queries, and data that requires strong consistency
- Use DynamoDB for user profiles, session management, shopping carts, and other data that needs fast access and can benefit from a more flexible schema
For global data resiliency:
- Aurora PostgreSQL-Compatible offers global databases with write forwarding for active-active configurations across multiple AWS Regions
- DynamoDB provides global tables for multi-region deployment with active-active configuration
Implementation approach:
- Identify which parts of your data model need relational capabilities versus which need speed and scalability
- Use Aurora/RDS for complex business logic and reporting
- Use DynamoDB for high-traffic user interactions and real-time features
- Consider using AWS Amplify, which provides tools to set up fully typed real-time APIs (powered by AWS AppSync) and NoSQL databases (powered by DynamoDB)
This hybrid approach allows you to leverage the strengths of both database types while addressing the specific needs of your mobile application.
Sources
Selecting a database for a SaaS application - AWS Prescriptive Guidance
Database configuration, backup, and failover - Web Application Hosting in the AWS Cloud
Choosing between relational (SQL) and NoSQL - Amazon DynamoDB
Concepts - AWS Amplify Gen 2 Documentation
Relevant content
- asked a year ago
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated a year ago
