- We must not consider Auto Scaling for Database Tier. It may not be applicable. It needs distributed architecture ; might be suitable for certain NoSQL DBs. Needs a test case prior to take decision for Production.
- For very small EC2 instance we must not consider Auto Scaling. Rather a bit lager EC2 instance can fix the issue.
- For very frequent changes, EC2 auto scaling may not be right choice. e.g: Cricket match update. Need to plan for CDN.
We'll explore scenarios involving nested queries, aggregations, custom scoring, and hybrid queries that combine multiple search criteria. 1. Nested Queries ElasticSearch Example: ElasticSearch supports nested documents, which allows for querying on nested fields with complex conditions. Query: Find products where the product has a review with a rating of 5 and the review text contains "excellent". { "query": { "nested": { "path": "reviews", "query": { "bool": { "must": [ { "match": { "reviews.rating": 5 } }, { "match": { "reviews.text": "excellent" } } ] } } } } } Redis Limitation: Redis does not support nested documents natively. While you can store nested structures in JSON documents using the RedisJSON module, querying these nested structures with complex condi...
Comments